:root {
    --app-navy: #0f2b5b;
    --app-blue: #377dff;
    --app-teal: #00d1b2;
    --app-surface: #f3f6fc;
}

body {
    background: var(--app-surface);
    -webkit-tap-highlight-color: transparent;
}

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ============ HERO (brand panel) ============ */
.hero-panel {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

.hero-panel::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    top: -180px;
    right: -180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
    border-radius: 50%;
    animation: glow 8s ease-in-out infinite alternate;
}

@keyframes glow {
    from { transform: scale(1);    opacity: 0.55; }
    to   { transform: scale(1.25); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-badge {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.brand-title {
    font-size: clamp(1.75rem, 7vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.hospital-badge {
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.85rem;
}

.hospital-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ============ CARD ============ */
.form-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 45px rgba(16, 24, 48, 0.09);
    border: 1px solid #e6e8ef;
}

.form-body {
    padding: 2rem;
}

.input-group-enhanced {
    margin-bottom: 1.25rem;
}

/* hanya sesuaikan bentuk & tinggi; tipografi ikut standar Keenthemes */
.form-control.form-control-enhanced {
    height: 58px;
    border-radius: 14px;
}

.field-hint {
    font-size: 0.8rem;
    color: #7e8299;
    margin-top: 0.45rem;
}

.btn-login {
    height: 58px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 22px rgba(55, 125, 255, 0.28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-login:active {
    transform: translateY(1px);
}

/* ============ INFO / HELP ============ */
.info-box {
    border-radius: 16px;
    background: var(--kt-primary-light);
    border: 1px dashed var(--app-blue);
    padding: 1rem 1.1rem;
}

/* ============ MOBILE ============ */
@media (max-width: 991.98px) {
    /* di HP: background halaman ikut putih supaya sheet menyatu */
    body {
        background: #ffffff;
    }

    .hero-panel {
        /* lengkungan ada di sheet putih, hero dibiarkan rata */
        padding-top: calc(1.5rem + env(safe-area-inset-top));
        padding-bottom: 3.25rem;
    }

    /* sheet putih naik menimpa hero -> terasa seperti app native.
       tanpa kartu terpisah: sheet ini SENDIRI yang jadi permukaannya */
    .form-wrap {
        margin-top: -28px;
        background: #ffffff;
        border-radius: 28px 28px 0 0;
        position: relative;
        z-index: 3;
        padding-top: 2rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* kartu putih dimatikan di HP */
    .form-container {
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .form-body {
        padding: 0;
    }

    /* garis kecil ala bottom-sheet */
    .form-wrap::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: #e2e8f0;
    }

    .logo-badge {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }

    .hospital-badge {
        font-size: 0.78rem;
        padding: 0.5rem 0.95rem;
    }

    .mobile-pad-bottom {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 575.98px) {
    /* cegah zoom otomatis iOS: font-size input >= 16px */
    .form-control.form-control-enhanced {
        font-size: 16px;
        height: 56px;
    }

   

    .btn-login {
        height: 56px;
    }
}
