/* ═══════════════════════════════════════════════════════
   EFS Auth Pages — Login, Password Reset
   Scoped to .fi-simple-layout so it never bleeds to app.
   ═══════════════════════════════════════════════════════ */

/* ── Background: animated mesh gradient ─────────────────── */
.fi-simple-main-ctn {
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(79, 117, 152, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 85% 80%, rgba(30, 58, 82, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 90% 50% at 50% 50%, rgba(45, 84, 117, 0.3) 0%, transparent 80%),
        linear-gradient(150deg, #0f2030 0%, #1a3348 35%, #24506e 70%, #2d6189 100%);
    background-size: 200% 200%;
    animation: efs-auth-bg 14s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

@keyframes efs-auth-bg {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 60% 40%; }
    100% { background-position: 100% 100%; }
}

/* ── Decorative orbs (pure CSS, no extra HTML) ───────────── */
.fi-simple-main-ctn::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle 280px at 8% 15%, rgba(107, 154, 184, 0.18) 0%, transparent 70%),
        radial-gradient(circle 200px at 92% 85%, rgba(79, 117, 152, 0.22) 0%, transparent 70%),
        radial-gradient(circle 150px at 75% 10%, rgba(173, 216, 240, 0.1) 0%, transparent 70%);
    animation: efs-orb-drift 18s ease-in-out infinite alternate;
}

@keyframes efs-orb-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(12px, -18px) scale(1.04); }
    66%  { transform: translate(-8px, 10px) scale(0.97); }
    100% { transform: translate(15px, -5px) scale(1.02); }
}

/* Dot grid overlay */
.fi-simple-main-ctn::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .6;
}

/* ── Card ────────────────────────────────────────────────── */
main.fi-simple-main {
    background: #ffffff;
    border-radius: 20px !important;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        0 8px 32px rgba(15, 23, 42, 0.16),
        0 32px 64px rgba(15, 23, 42, 0.1),
        0 2px 8px rgba(79, 117, 152, 0.12);
    border-top: 3px solid #4f7598;
    position: relative;
    z-index: 1;
    animation: efs-card-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.05s;
}

@keyframes efs-card-in {
    from { opacity: 0; transform: translateY(22px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dark mode card */
.dark main.fi-simple-main {
    background: #1e293b;
    border-top-color: #6b9ab8;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 32px 64px rgba(0, 0, 0, 0.3);
}

/* ── Header area ─────────────────────────────────────────── */
.fi-simple-header {
    text-align: center;
    padding-bottom: 6px;
}

.fi-simple-header-heading {
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    color: #0f172a !important;
    font-size: 1.35rem !important;
}

.dark .fi-simple-header-heading {
    color: #f1f5f9 !important;
}

.fi-simple-header-subheading {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

.dark .fi-simple-header-subheading {
    color: #94a3b8 !important;
}

/* ── Feature badge (injected via render hook) ────────────── */
.efs-login-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.efs-login-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4f9;
    color: #3d5c7a;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #c5daea;
    letter-spacing: 0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dark .efs-login-badge-inner {
    background: rgba(79,117,152,0.18);
    color: #93c5e0;
    border-color: rgba(107,154,184,0.3);
}

.efs-login-badge-dot {
    width: 6px;
    height: 6px;
    background: #4f7598;
    border-radius: 50%;
    animation: efs-pulse-dot 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

.dark .efs-login-badge-dot { background: #93c5e0; }

@keyframes efs-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ── "Daftar sekarang" link (injected via render hook) ───── */
.efs-login-signup-link {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.efs-login-signup-link a {
    color: #4f7598;
    font-weight: 600;
    text-decoration: none;
}

.efs-login-signup-link a:hover {
    text-decoration: underline;
}

.dark .efs-login-signup-link { color: #94a3b8; }
.dark .efs-login-signup-link a { color: #93c5e0; }

/* ── Input focus refinement ──────────────────────────────── */
.fi-simple-page input:focus,
.fi-simple-page select:focus,
.fi-simple-page textarea:focus {
    outline: none;
    ring-color: #4f7598;
}

/* ── Submit button accent ────────────────────────────────── */
.fi-simple-page [type=submit],
.fi-simple-page button[wire\:click*="authenticate"] {
    transition: box-shadow 0.2s, transform 0.15s;
}

.fi-simple-page [type=submit]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 117, 152, 0.35);
}

.fi-simple-page [type=submit]:active {
    transform: translateY(0);
}

/* ── Footer: copyright / version note ───────────────────── */
.efs-auth-footer {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
    z-index: 0;
}
