/* ============================================================
   ARCHITECTURE THEME — Login Page
   CV. Sapta Karya Group
   ============================================================ */

/* === BACKGROUND: Blueprint grid gelap === */
body:has(.fi-simple-layout) {
    background-color: #071524;
    background-image:
        linear-gradient(rgba(56, 130, 210, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 130, 210, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(56, 130, 210, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 130, 210, 0.03) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* === SILUET KOTA === */
#login-skyline {
    display: none;
}
body:has(.fi-simple-layout) #login-skyline {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 280px;
    z-index: 1;
    pointer-events: none;
}

/* === CAHAYA KOTA (golden glow dari bawah) === */
body:has(.fi-simple-layout)::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: radial-gradient(ellipse 70% 100% at 50% 110%, rgba(200, 149, 44, 0.14) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* === CAHAYA BIRU KIRI ATAS === */
body:has(.fi-simple-layout)::before {
    content: '';
    position: fixed;
    top: -180px;
    left: -180px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(30, 90, 200, 0.12) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 7s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.08); }
}

/* === LAYOUT WRAPPER === */
body:has(.fi-simple-layout) .fi-simple-layout {
    position: relative;
    z-index: 10;
    animation: pageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* === KARTU FORM: technical drawing style === */
body:has(.fi-simple-layout) .fi-simple-main {
    background: rgba(6, 18, 46, 0.78) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(200, 149, 44, 0.28) !important;
    border-radius: 3px !important;
    box-shadow:
        0 0 0 1px rgba(200, 149, 44, 0.07),
        0 32px 64px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(200, 149, 44, 0.12) !important;
    position: relative !important;
}

/* Sudut kiri atas — bracket drawing */
body:has(.fi-simple-layout) .fi-simple-main::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: 22px; height: 22px;
    border-top: 2px solid #c8952c;
    border-left: 2px solid #c8952c;
    pointer-events: none;
    z-index: 1;
}

/* Sudut kanan bawah — bracket drawing */
body:has(.fi-simple-layout) .fi-simple-main::after {
    content: '';
    position: absolute;
    bottom: -2px; right: -2px;
    width: 22px; height: 22px;
    border-bottom: 2px solid #c8952c;
    border-right: 2px solid #c8952c;
    pointer-events: none;
    z-index: 1;
}

/* === LOGO === */
body:has(.fi-simple-layout) .fi-simple-header {
    margin-bottom: 0.5rem;
}
body:has(.fi-simple-layout) img.fi-logo,
body:has(.fi-simple-layout) .fi-simple-header img {
    filter: drop-shadow(0 2px 14px rgba(200, 149, 44, 0.45)) !important;
    animation: logoDrop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both !important;
    object-fit: contain !important;
}

@keyframes logoDrop {
    from { opacity: 0; transform: scale(0.78) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* === HEADING === */
body:has(.fi-simple-layout) .fi-simple-header-heading {
    color: white !important;
    letter-spacing: 0.03em !important;
}
body:has(.fi-simple-layout) .fi-simple-header-subheading {
    color: rgba(180, 190, 210, 0.55) !important;
    font-size: 0.82rem !important;
}

/* === LABEL === */
body:has(.fi-simple-layout) label,
body:has(.fi-simple-layout) .fi-fo-field-wrp-label label {
    color: rgba(190, 205, 225, 0.75) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* === INPUT === */
body:has(.fi-simple-layout) input[type="email"],
body:has(.fi-simple-layout) input[type="password"],
body:has(.fi-simple-layout) input[type="text"] {
    background: rgba(4, 14, 36, 0.75) !important;
    border: 1px solid rgba(200, 149, 44, 0.22) !important;
    color: white !important;
    border-radius: 3px !important;
    transition: all 0.2s !important;
}
body:has(.fi-simple-layout) input::placeholder {
    color: rgba(255, 255, 255, 0.18) !important;
}
body:has(.fi-simple-layout) input:focus {
    background: rgba(8, 24, 60, 0.85) !important;
    border-color: rgba(200, 149, 44, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(200, 149, 44, 0.1) !important;
    outline: none !important;
}
body:has(.fi-simple-layout) .fi-input-wrp {
    background: transparent !important;
    border: none !important;
}
body:has(.fi-simple-layout) .fi-input-wrp-icon {
    color: rgba(200, 149, 44, 0.55) !important;
}

/* === CHECKBOX === */
body:has(.fi-simple-layout) .fi-checkbox-label,
body:has(.fi-simple-layout) [type="checkbox"] + span,
body:has(.fi-simple-layout) [type="checkbox"] + label {
    color: rgba(190, 205, 225, 0.55) !important;
}

/* === TOMBOL MASUK === */
body:has(.fi-simple-layout) [type="submit"],
body:has(.fi-simple-layout) button[type="submit"],
body:has(.fi-simple-layout) .fi-btn-primary {
    background: linear-gradient(135deg, #a0680a 0%, #c8952c 50%, #daa837 100%) !important;
    border: none !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 18px rgba(200, 149, 44, 0.38) !important;
    transition: all 0.22s ease !important;
    color: #07111f !important;
}
body:has(.fi-simple-layout) [type="submit"]:hover,
body:has(.fi-simple-layout) button[type="submit"]:hover,
body:has(.fi-simple-layout) .fi-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(200, 149, 44, 0.52) !important;
    filter: brightness(1.06) !important;
}

/* === ERROR === */
body:has(.fi-simple-layout) .fi-fo-field-wrp-error-message p {
    color: #fca5a5 !important;
}

/* === SECTION RESET === */
body:has(.fi-simple-layout) .fi-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body:has(.fi-simple-layout) .fi-section-content-ctn {
    background: transparent !important;
}

/* === SECURITY BAR === */
.login-security-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 149, 44, 0.07);
    border: 1px solid rgba(200, 149, 44, 0.2);
    border-radius: 3px;
    padding: 9px 14px;
    margin-bottom: 16px;
    color: rgba(200, 175, 130, 0.7);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
}
.login-security-bar svg {
    flex-shrink: 0;
    color: #c8952c;
    width: 14px;
    height: 14px;
}
