/* ──────────────────────────────────────────────
   Auth Pages - Split Layout (Vercel/Linear style)
   ────────────────────────────────────────────── */

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

/* Brand panel (left side) */
.auth-brand {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    text-align: center;
}

.auth-brand-icon {
    color: var(--accent, #3b82f6);
    margin-bottom: 1.5rem;
}

.auth-brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.auth-brand-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 20rem;
}

/* Form container (right side) */
.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--bg-primary);
}

.auth-form-inner {
    width: 100%;
    max-width: 24rem;
}

/* Headings */
.auth-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.auth-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0 0 1.5rem;
}

/* Auth form spacing */
.auth-form {
    margin-top: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* Remember me + forgot password row */
.form-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row-between {
    justify-content: space-between;
    margin: 1rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent, #3b82f6);
}

/* Links and subtext */
.auth-link {
    color: var(--accent, #3b82f6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-subtext {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* Password hints */
.password-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.password-requirements .req {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.password-requirements .req.met {
    color: #22c55e;
}

.password-requirements .req-icon::before {
    content: '\25CB'; /* circle */
}

.password-requirements .req.met .req-icon::before {
    content: '\2713'; /* checkmark */
}

/* Form error messages */
.form-error {
    font-size: 0.75rem;
    color: var(--error, #ef4444);
    margin: 0.25rem 0 0;
}

/* Flash messages */
.flash-messages {
    margin-bottom: 1.5rem;
}

.flash-messages .alert {
    position: relative;
    animation: flash-fade-in 0.2s ease-out;
}

.flash-messages .alert-dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
    padding: 0;
}

.flash-messages .alert-dismiss:hover {
    opacity: 1;
}

@keyframes flash-fade-in {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes flash-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-0.5rem); }
}

.flash-messages .alert.dismissing {
    animation: flash-fade-out 0.2s ease-in forwards;
}

/* Auth message page (verify) */
.auth-message {
    text-align: center;
}

.auth-message-text {
    color: var(--text-secondary);
    margin: 1rem 0;
}

/* ──────────────────────────────────────────────
   Responsive: Mobile
   ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

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

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