/**
 * Comfy.Email - Auth Page Styles
 * Styles specific to login, register, and password reset pages
 */

/* ============================================
 * AUTH LAYOUT OVERRIDES
 * ============================================ */

.auth-layout {
    background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

/* ============================================
 * AUTH SIDEBAR (DECORATIVE LEFT PANEL)
 * ============================================ */

.auth-sidebar {
    display: none;
    flex: 1;
    background: linear-gradient(135deg, var(--color-accent-600) 0%, var(--color-accent-800) 100%);
    padding: var(--space-8);
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .auth-sidebar {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

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

.auth-sidebar-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.auth-sidebar-description {
    font-size: var(--text-lg);
    opacity: 0.9;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    opacity: 0.9;
}

.auth-feature svg {
    flex-shrink: 0;
}

/* ============================================
 * AUTH CONTENT (MAIN PANEL)
 * ============================================ */

.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    min-height: 100vh;
}

/* ============================================
 * AUTH CARD
 * ============================================ */

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-surface);
    border: var(--border-width-default) solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* ============================================
 * AUTH HEADER
 * ============================================ */

.auth-header {
    padding: var(--space-6);
    text-align: center;
    border-bottom: var(--border-width-default) solid var(--border-default);
}

.auth-logo-link {
    display: inline-block;
    text-decoration: none;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-4);
}

.auth-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.auth-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
 * AUTH TABS
 * ============================================ */

.auth-tabs {
    display: flex;
    border-bottom: var(--border-width-default) solid var(--border-default);
}

.auth-tab {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast);
    margin-bottom: -1px;
}

.auth-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.auth-tab.active {
    color: var(--color-accent-500);
    border-bottom-color: var(--color-accent-500);
}

.auth-tab.hidden {
    display: none;
}

/* ============================================
 * AUTH BODY & FORMS
 * ============================================ */

.auth-body {
    padding: var(--space-6);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn var(--duration-normal) var(--ease-default);
}

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

/* ============================================
 * AUTH FOOTER
 * ============================================ */

.auth-footer {
    padding: var(--space-4) var(--space-6);
    text-align: center;
    background-color: var(--bg-elevated);
    border-top: var(--border-width-default) solid var(--border-default);
}

.auth-footer p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-link);
    text-decoration: none;
}

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

/* ============================================
 * CAPTCHA
 * ============================================ */

.captcha-image {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-md);
    border: var(--border-width-default) solid var(--border-default);
    margin-bottom: var(--space-2);
}

/* ============================================
 * UTILITY OVERRIDES
 * ============================================ */

.w-full {
    width: 100%;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-1 {
    margin-top: var(--space-1);
}

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

@media (max-width: 480px) {
    .auth-content {
        padding: var(--space-4);
    }
    
    .auth-card {
        border-radius: var(--radius-lg);
    }
    
    .auth-header,
    .auth-body {
        padding: var(--space-5);
    }
    
    .auth-tabs {
        font-size: var(--text-xs);
    }
}

/* ============================================
 * TENANT BRANDING
 * ============================================ */

.auth-sidebar-logo {
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
    margin-bottom: var(--space-6);
    border-radius: var(--radius-md);
}

.auth-sidebar-powered {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--text-xs);
    opacity: 0.7;
}

.auth-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.tenant-branded .auth-card {
    border-top: 3px solid var(--tenant-primary, var(--color-accent-500));
}
