﻿/* =============================================
   GigFlow - Auth Pages CSS
   ============================================= */

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Panel */
.auth-left {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.auth-left-content { position: relative; z-index: 1; max-width: 380px; }
.auth-left-content h2 { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 12px; }
.auth-left-content p { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.auth-left .navbar-brand { color: white; margin-bottom: 48px; display: inline-flex; }
.auth-left .logo-icon { color: rgba(255,255,255,0.9); }
.auth-left .logo-text { color: white; }
.auth-left .logo-accent { color: rgba(255,255,255,0.7); }
.mb-40 { margin-bottom: 40px; }

.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.auth-feature i { color: #a5f3a5; font-size: 1rem; flex-shrink: 0; }

/* Right Panel */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
    overflow-y: auto;
}
.auth-box { width: 100%; max-width: 480px; }
.auth-box h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }
.auth-subtitle a { color: var(--primary); font-weight: 600; }
.auth-subtitle a:hover { text-decoration: underline; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.alert-danger { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border: 2px solid #10b981;
    border-left: 6px solid #10b981;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(16,185,129,0.2);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Role Selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-option {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.role-option input { display: none; }
.role-option i { font-size: 1.5rem; color: var(--text-muted); transition: var(--transition); }
.role-option span { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.role-option:hover { border-color: var(--primary); }
.role-option.active { border-color: var(--primary); background: rgba(99,102,241,0.05); }
.role-option.active i { color: var(--primary); }
.role-option.active span { color: var(--primary); }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.forgot-link { font-size: 0.8rem; color: var(--primary); font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > i:first-child { position: absolute; left: 14px; color: var(--text-muted); font-size: 0.875rem; pointer-events: none; }
.input-icon input {
    width: 100%; padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}
.input-icon input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.input-icon input::placeholder { color: var(--text-light); }
.toggle-password { position: absolute; right: 12px; background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; transition: var(--transition); }
.toggle-password:hover { color: var(--primary); }

.form-check { flex-direction: row; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; font-weight: 400; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.checkbox-label a { color: var(--primary); }

.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 0.95rem; border-radius: var(--radius-sm); }

/* Divider */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

/* Social Auth */
.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); font-size: 0.875rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.btn-social:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.05); }
.btn-social .fa-google { color: #ea4335; }
.btn-social .fa-github { color: var(--text); }

/* Password Strength */
.password-strength { margin-top: 6px; }
.strength-bar { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: all 0.3s; width: 0; }
.strength-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .auth-right { padding: 30px 20px; align-items: flex-start; padding-top: 50px; }
}
