/**
 * Auth Brand Panel Styles
 * Left panel design for login, register, and password reset pages
 *
 * @since 2026-01-06
 */

/* ========================================
   BRAND PANEL - Left Side
   ======================================== */

.brand-panel {
    background: #1C1917;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(200, 74, 44, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 74, 44, 0.05) 0%, transparent 40%);
    color: #FFFFFF;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.brand-header {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: block;
    text-decoration: none;
    margin-bottom: 3rem;
}

.brand-logo:hover {
    text-decoration: none;
}

.brand-logo-img {
    height: 40px;
    width: auto;
}

/* Right panel - remove logo compensation */
.auth-container .login-form .login-logo {
    display: none !important;
}

.auth-container .welcome-txt {
    margin-top: 1rem;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    animation: fadeInUp 0.6s ease-out;
}

.brand-headline {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.brand-headline span {
    color: #C84A2C;
}

.brand-subheadline {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: #A8A29E;
    margin-bottom: 1rem;
    max-width: 480px;
}

.ai-tagline {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #C84A2C;
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.025em;
}

.stat-label {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #78716C;
    margin-top: 0.25rem;
}

/* Testimonial */
.testimonial {
    position: relative;
    z-index: 1;
    border-top: 1px solid #292524;
    padding-top: 2rem;
}

.testimonial-quote {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: #D4D1CC;
    margin-bottom: 1.5rem;
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    background: #44403C;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #A8A29E;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #FFFFFF;
}

.author-role {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #78716C;
}

/* Client Logos */
.client-logos {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid #292524;
    margin-top: 2rem;
}

.client-logos-label {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #78716C;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.client-logos-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.client-logos-list img {
    height: 24px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1); /* Makes logos white */
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .brand-panel {
        padding: 2rem;
        min-height: auto;
    }

    .brand-headline {
        font-size: 1.875rem;
    }

    .stats-row {
        gap: 1.5rem;
    }

    .testimonial,
    .client-logos {
        display: none;
    }
}

@media (max-width: 768px) {
    .brand-panel {
        padding: 1.5rem;
        min-height: auto;
    }

    .brand-logo {
        margin-bottom: 1.5rem;
    }

    .brand-headline {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .brand-subheadline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 0;
    }

    .stat-item {
        flex: 1;
        min-width: 100px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* ========================================
   AUTH CONTAINER LAYOUT
   ======================================== */

/* Reset body and html for full-height auth pages */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Reset any wrapper padding/margin */
.flex-root {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Ensure brand panel fills full height */
.auth-container .brand-panel {
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }
}

/* ========================================
   RIGHT PANEL OVERRIDES
   Make right panel white to contrast with dark left panel
   ======================================== */

.auth-container.login-form-outer {
    background: #FFFFFF !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Override old panel widths - make 50-50 split */
.auth-container .brand-panel {
    width: 50% !important;
    flex: none !important;
}

.auth-container .login-right-new {
    width: 50% !important;
    flex: none !important;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem !important;
}

.auth-container .welcom-login-out {
    background: #FFFFFF !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Responsive - stack on smaller screens */
@media (max-width: 1024px) {
    .auth-container .brand-panel,
    .auth-container .login-right-new {
        width: 100% !important;
    }
}
