/* ========================================
   Auth Split Layout (Login + Signup)
   ======================================== */

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

/* ========================================
   Left Panel — Form
   ======================================== */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    background: var(--bg-primary);
    overflow-y: auto;
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: authFadeIn 0.7s ease forwards;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 2.5rem;
}

.auth-logo .logo-mark {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo .logo-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
}

.auth-logo .logo-mark svg {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    fill: var(--bg-primary);
}

.auth-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-logo .logo-text span {
    color: var(--accent-primary);
}

/* Form header */
.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.auth-form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

/* Input with icon */
.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.input-icon-wrap input {
    padding-left: 2.75rem !important;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.95rem 1.5rem;
}

/* Google button override */
.auth-form-body .btn-google {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.auth-form-body .btn-google:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

/* Form footer */
.auth-form-footer {
    text-align: center;
    margin-top: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-form-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Right Panel — Branding
   ======================================== */
.auth-branding-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
    background:
        linear-gradient(135deg,
            #0a3d2f 0%,
            #0d4a3a 20%,
            #0b3d35 40%,
            #0e2d3d 60%,
            #122840 80%,
            #0d1f33 100%
        );
}

.auth-branding-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 70%, rgba(0,212,170,0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99,102,241,0.12), transparent);
    z-index: 0;
}

.auth-branding-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.auth-branding-content h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 2.5rem;
}

.auth-branding-content h2 span {
    color: var(--accent-primary);
}

/* Testimonial block */
.auth-testimonial-block {
    margin-bottom: 3rem;
    position: relative;
}

.auth-quote-mark {
    color: rgba(0,212,170,0.4);
    margin-bottom: 1rem;
}

.auth-testimonial {
    display: none;
    animation: authTestimonialFade 0.5s ease forwards;
}

.auth-testimonial.active {
    display: block;
}

@keyframes authTestimonialFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-testimonial-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.auth-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.auth-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.auth-author-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* Trusted companies */
.auth-trusted {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.auth-trusted-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.auth-trusted-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.auth-company-logo {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.auth-company-logo:hover {
    color: rgba(255,255,255,0.8);
}

/* ========================================
   Signup-specific additions
   ======================================== */
.signup-form-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

/* Password strength meter */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.25rem;
}

.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--border-color);
    transition: background 0.3s ease;
}

.strength-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

/* Terms checkbox */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.terms-check a {
    color: var(--accent-primary);
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

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

    .auth-branding-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    .auth-form-wrapper {
        max-width: 440px;
    }
}

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

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