/* ============================================================
   Shared Auth Page Styles
   Used by: login, reset-password, verify-email (and future auth pages)
   ============================================================ */

/* CSS Variables */
:root {
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --primary-gradient: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-login {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   Layout: Two-Column Container
   ============================================================ */
.page-login .auth-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ============================================================
   Left Side — Immersive Hero Panel
   ============================================================ */
.page-login .auth-hero {
    flex: 1.2;
    position: relative;
    background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px;
    color: white;
    overflow: hidden;
}

.page-login .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

/* Logo in top-left of hero */
.page-login .hero-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 3;
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.page-login .hero-logo:hover {
    transform: scale(1.05);
}

.page-login .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: authSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-login .hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-login .hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login .hero-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* ============================================================
   Right Side — Form Panel
   ============================================================ */
.page-login .auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    padding: 40px;
    overflow-y: auto;
}

.page-login .auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    animation: authFadeIn 1s ease-out;
}

/* ============================================================
   Brand Header (Logo + Title + Subtitle)
   ============================================================ */
.page-login .brand-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-login .brand-logo {
    height: 64px;
    margin-bottom: 28px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.page-login .brand-logo:hover {
    transform: scale(1.05);
}

.page-login .auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.page-login .auth-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   Form Elements
   ============================================================ */
.page-login .form-group {
    margin-bottom: 20px;
}

.page-login .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.page-login .input-group {
    position: relative;
    transition: all 0.3s ease;
}

.page-login .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.page-login .form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Input without left icon (full-width padding) */
.page-login .form-input.no-icon {
    padding-left: 16px;
}

/* Read-only input styling */
.page-login .form-input[readonly] {
    opacity: 0.65;
    cursor: default;
}

.page-login .form-input:hover {
    background: #f1f5f9;
}

.page-login .form-input:focus {
    outline: none;
    background: white;
    border-color: #0e7490;
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}

.page-login .form-input:focus ~ .input-icon {
    color: #0e7490;
}

.page-login .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-login .password-toggle:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

.page-login .text-danger {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.page-login .text-success {
    color: #16a34a;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* ============================================================
   Form Options Row (Remember Me + Forgot Password)
   ============================================================ */
.page-login .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
}

.page-login .forgot-link {
    color: #0e7490;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.page-login .forgot-link:hover {
    color: #0f766e;
}

/* ============================================================
   Primary Action Button
   ============================================================ */
.page-login .btn-auth-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.2);
    text-decoration: none;
}

.page-login .btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.3);
    color: white;
}

.page-login .btn-auth-primary:active {
    transform: translateY(0);
}

/* ============================================================
   Secondary / Outline Action Button
   ============================================================ */
.page-login .btn-auth-secondary {
    width: 100%;
    padding: 15px;
    background: white;
    color: var(--text-main);
    border: 2px solid var(--input-border);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 12px;
}

.page-login .btn-auth-secondary:hover {
    background: var(--input-bg);
    border-color: #cbd5e1;
    color: var(--text-main);
}

/* ============================================================
   Divider
   ============================================================ */
.page-login .auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

/* ============================================================
   Social Login
   ============================================================ */
.page-login .social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.page-login .btn-social {
    padding: 14px;
    background: white;
    border: 2px solid var(--input-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.page-login .btn-social:hover {
    background: var(--input-bg);
    border-color: #cbd5e1;
}

.page-login .btn-social img {
    width: 20px;
    height: 20px;
}

/* ============================================================
   Verify Email — Icon / Info box
   ============================================================ */
.page-login .verify-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(15, 118, 110, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.page-login .verify-icon-wrap svg,
.page-login .verify-icon-wrap i[data-lucide] {
    width: 36px;
    height: 36px;
    color: #0e7490;
}

.page-login .verify-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.6;
}

.page-login .verify-success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #14532d;
    line-height: 1.5;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   Responsive — Hide hero on small screens
   ============================================================ */
@media (max-width: 1024px) {
    .page-login .auth-hero {
        display: none;
    }

    .page-login .auth-form-wrapper {
        background: #f8fafc;
    }

    .page-login .auth-card {
        background: white;
        border-radius: 24px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}
