/* =====================================================
   MOTORS365 - Authentication Styles
   ===================================================== */

/* Auth Body */
.auth-body {
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-body.auth-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Auth Container - Split Layout */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Branding Panel */
.auth-branding {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%);
    overflow: hidden;
}

.branding-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(212, 168, 85, 0.1), transparent),
        radial-gradient(ellipse 60% 60% at 80% 80%, rgba(59, 110, 165, 0.1), transparent);
    pointer-events: none;
}

.branding-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 480px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.auth-logo.centered {
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-logo .logo-icon {
    width: 36px;
    height: 36px;
    color: var(--navy-800);
}

.branding-hero {
    margin-bottom: 3rem;
}

.branding-hero h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.branding-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.938rem;
    color: var(--text-secondary);
}

.brand-feature svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.branding-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.brand-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-text {
    font-size: 0.813rem;
    color: var(--text-muted);
}

.branding-testimonial {
    margin-top: auto;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.branding-testimonial p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.branding-testimonial .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.branding-testimonial .author-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-muted);
    border-radius: 50%;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.875rem;
}

.branding-testimonial .author-name {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
}

.branding-testimonial .author-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Form Panel */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-primary);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-header a {
    color: var(--gold);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-header a:hover {
    color: var(--gold-light);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.938rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link {
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 500;
}

.form-link:hover {
    color: var(--gold-light);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon .form-input {
    padding-left: 3rem;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    padding: 0.25rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-primary);
}

.password-toggle svg {
    position: static;
    width: 20px;
    height: 20px;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.strength-fill.weak { width: 33%; background: var(--danger); }
.strength-fill.medium { width: 66%; background: var(--warning); }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 100px;
}

.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
}

.checkbox-label a {
    color: var(--gold);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    font-size: 0.813rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-buttons .btn-social {
    flex: 1;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.btn-social:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-strong);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.btn-social-full {
    width: 100%;
    padding: 0.975rem 1.5rem;
    font-size: 0.938rem;
}

/* Auth Footer */
.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.813rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-footer a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.auth-footer a:hover {
    color: var(--text-primary);
}

/* Auth Card - Centered Layout */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.auth-card-content {
    text-align: center;
}

.auth-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--gold-muted);
    border-radius: 50%;
    color: var(--gold);
}

.auth-icon.success {
    background: var(--success-muted);
    color: var(--success);
}

.auth-icon svg {
    width: 28px;
    height: 28px;
}

.auth-card-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.auth-card-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-card-content .auth-form {
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--text-primary);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* Email Tips */
.email-tips {
    text-align: left;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.tips-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.email-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.email-tips li {
    font-size: 0.813rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.email-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-branding {
        display: none;
    }

    .auth-form-panel {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 1.5rem;
    }

    .auth-form-container {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
    }

    .auth-card {
        padding: 1.5rem;
    }
}
