/* =====================================================
   MODERN AUTH PAGES STYLES (LIGHT/NEUTRAL THEME)
   ===================================================== */

:root {
    --auth-bg: #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-card-border: #e2e8f0;
    --auth-input-bg: #f1f5f9;
    --auth-input-border: #cbd5e1;
    --auth-primary: #4f46e5;
    --auth-primary-hover: #4338ca;
    --auth-text: #0f172a;
    --auth-text-muted: #64748b;
    --auth-error: #ef4444;
}

body.auth-body {
    background: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    color: var(--auth-text);
    margin: 0;
    padding: 1.5rem; /* Padding horizontal untuk mobile */
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto; /* Mengizinkan scroll hanya jika tinggi layar lebih kecil dari card */
    position: relative;
}

/* Ambient glow blobs - Disesuaikan untuk light mode (sangat halus) */
.auth-glow-blob {
    position: fixed; /* Fixed agar tidak mempengaruhi tinggi dokumen */
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}
.auth-glow-blob-1 { top: -20%; left: -10%; }
.auth-glow-blob-2 { bottom: -20%; right: -10%; }

/* Card Auth */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px; /* Sedikit lebih ramping untuk tampilan modern */
    margin: auto; /* Membantu memastikan posisi center */
}

.auth-card {
    transform: translateX(10px);
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-card-border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08); /* Shadow yang lebih terang/lembut */
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 1rem;
    margin-bottom: 1rem;
    color: var(--auth-primary);
}
.auth-logo svg {
    width: 28px;
    height: 28px;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    color: var(--auth-text);
}
.auth-subtitle {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    margin: 0;
}

/* Forms */
.auth-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}
.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input {
    width: 100%;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--auth-text);
    font-family: inherit;
    transition: all 0.2s ease;
}
.auth-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.auth-input::placeholder {
    color: #94a3b8;
}

/* Error/Validation */
.auth-error-msg {
    font-size: 0.8rem;
    color: var(--auth-error);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Password eye button */
.auth-reveal-btn {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-text-muted);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.auth-reveal-btn:hover {
    color: var(--auth-text);
}
.auth-input-with-btn {
    padding-right: 2.75rem !important;
}

/* Custom checkbox */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auth-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 0.375rem;
    border: 1px solid var(--auth-input-border);
    background: var(--auth-input-bg);
    accent-color: var(--auth-primary);
    cursor: pointer;
}
.auth-checkbox-label {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    cursor: pointer;
}

/* Links & Buttons */
.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}
.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.auth-btn-primary {
    width: 100%;
    background: var(--auth-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.auth-btn-primary:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}
.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}

/* Alert session status */
.auth-status-alert {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #047857;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 480px) {
    body.auth-body {
        padding: 1rem;
    }
    .auth-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    .auth-title {
        font-size: 1.35rem;
    }
}
