/*!
 * OpenSID Lamongan Digital — Halaman login admin (siteman) v0.1
 * Lapisan override di atas login-style.css bawaan. Aktif bila <html class="lds">.
 * Gambar latar pilihan desa ($latar_login) tetap dipakai, diberi lapisan navy.
 * Berlisensi GPL v3, mengikuti OpenSID.
 */
html.lds {
    --lds-navy: #0B2545;
    --lds-blue: #1769E0;
    --lds-blue-600: #1257BD;
    --lds-text: #0F1B2D;
    --lds-text-2: #475569;
    --lds-text-3: #7A8699;
    --lds-border-strong: #D3DAE5;
    --lds-ring: 0 0 0 3px rgba(23, 105, 224, .22);
    --lds-font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html.lds body.login {
    font-family: var(--lds-font);
    color: var(--lds-text);
    min-height: 100vh;
    background-color: var(--lds-navy);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}
/* Lapisan navy di atas foto latar desa */
html.lds body.login::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 15% 10%, rgba(23, 105, 224, .35), transparent 60%),
        linear-gradient(160deg, rgba(11, 37, 69, .92) 0%, rgba(11, 37, 69, .78) 55%, rgba(16, 48, 90, .88) 100%);
    z-index: 0;
}
html.lds body.login .top-content { position: relative; z-index: 1; }
html.lds body.login .inner-bg { padding: 48px 0 32px; min-height: 100vh; display: flex; align-items: center; }
html.lds body.login .inner-bg > .container { width: 100%; }

html.lds body.login .form-box {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px;
}

html.lds body.login .form-top,
html.lds body.login .form-bottom {
    background: #fff;
    border: 0;
    box-shadow: none;
}
html.lds body.login .form-top {
    border-radius: 18px 18px 0 0;
    padding: 28px 28px 8px;
    text-align: center;
}
html.lds body.login .form-bottom {
    border-radius: 0 0 18px 18px;
    padding: 12px 28px 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
html.lds body.login .form-box > .form-top { box-shadow: 0 -10px 60px rgba(0, 0, 0, .15); }

html.lds body.login .form-top img.img-responsive {
    display: inline-block;
    width: 72px !important;
    height: auto;
    margin: 0 auto 8px;
}
html.lds body.login .login-footer-top h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--lds-text);
    letter-spacing: -0.01em;
    margin: 6px 0 2px;
    text-transform: none;
    /* login-style.css: text-shadow 4px hitam + -webkit-text-stroke putih */
    text-shadow: none;
    -webkit-text-stroke: 0;
}
html.lds body.login .login-footer-top h3 {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--lds-text-3);
    line-height: 1.55;
    margin: 0 0 6px;
    text-transform: none;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
html.lds body.login .login-footer-top h3 > br:first-child { display: none; }

/* Isian */
html.lds body.login .form-bottom .form-group { margin-bottom: 12px; }
html.lds body.login .form-bottom form .form-control,
html.lds body.login .form-bottom form input[type="text"],
html.lds body.login .form-bottom form input[type="password"] {
    height: 46px;
    border: 1px solid var(--lds-border-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--lds-text);
    font-size: 14.5px;
    font-family: var(--lds-font);
    padding: 0 14px;
    box-shadow: none;
    line-height: 46px;
    text-align: left;
}
html.lds body.login .form-bottom form .form-control:focus {
    border-color: var(--lds-blue);
    box-shadow: var(--lds-ring);
    outline: 0;
}
html.lds body.login .form-bottom form .form-control::placeholder { color: #9AA6B8; }
html.lds body.login #captcha {
    border-radius: 10px;
    border: 1px solid var(--lds-border-strong);
    max-width: 100%;
}
html.lds body.login .form-checkbox { accent-color: var(--lds-blue); margin-right: 4px; }
html.lds body.login label { color: var(--lds-text-2); font-size: 13px; }

/* Tombol: utama = "Masuk"; tautan sekunder (lupa sandi, OTP) = tombol teks */
html.lds body.login .form-bottom form button.btn,
html.lds body.login .form-bottom form button[type="submit"] {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: var(--lds-blue);
    border: 0;
    color: #fff;
    font-family: var(--lds-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: .01em;
    box-shadow: 0 10px 24px rgba(23, 105, 224, .35);
    transition: background .15s ease, transform .1s ease;
}
html.lds body.login .form-bottom form button.btn:hover { background: var(--lds-blue-600); opacity: 1; }
html.lds body.login .form-bottom form button.btn:active { transform: translateY(1px); }
html.lds body.login .form-bottom form button.btn:focus-visible { outline: 2px solid #fff; box-shadow: var(--lds-ring); }

html.lds body.login .form-bottom form a.btn {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--lds-blue);
    font-weight: 600;
    font-size: 13px;
    height: auto;
    line-height: 1.4;
    padding: 4px 0;
    width: auto;
}
html.lds body.login .form-bottom form a.btn:hover { color: var(--lds-blue-600); text-decoration: underline; opacity: 1; }
/* "Lupa kata sandi?" ke kanan, sejajar centang "Tampilkan kata sandi" */
html.lds body.login .form-bottom form .form-group:has(> #checkbox) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
}
html.lds body.login .form-bottom form .form-group:has(> #checkbox) > label { margin: 0; }
html.lds body.login .form-bottom form .form-group:has(> #checkbox) > a.btn { margin-left: auto; }
/* "Masuk dengan OTP" sebagai tombol garis */
html.lds body.login .form-bottom form .form-group.text-center > a.btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 42px;
    border: 1px solid var(--lds-border-strong);
    border-radius: 12px;
    color: var(--lds-text);
    padding: 0;
}
html.lds body.login .form-bottom form .form-group.text-center > a.btn:hover {
    border-color: var(--lds-blue);
    color: var(--lds-blue);
    text-decoration: none;
}

html.lds body.login .form-bottom hr { border-color: #EEF1F6; margin: 14px 0 10px !important; }
html.lds body.login .login-footer-bottom { color: var(--lds-text-3); font-size: 12px; text-align: center; }
html.lds body.login .login-footer-bottom a { color: var(--lds-text-2); font-weight: 600; }

/* Pesan galat */
html.lds body.login .alert {
    border-radius: 12px;
    border: 1px solid #F6C9CA;
    background: #FDECEC;
    color: #8E1F24;
    font-size: 13px;
    text-align: left;
    padding: 10px 14px;
    margin: 10px 0 0;
}
html.lds body.login .alert p { margin: 0; }

/* Penanda layanan Pemkab di bawah kartu */
html.lds body.login .form-box::after {
    content: "Pemerintah Kabupaten Lamongan · Layanan Desa Digital";
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    margin-top: 18px;
    letter-spacing: .02em;
}

@media (max-width: 480px) {
    html.lds body.login .inner-bg { padding: 20px 0; align-items: flex-start; }
    html.lds body.login .form-top { padding: 22px 20px 6px; }
    html.lds body.login .form-bottom { padding: 10px 20px 18px; }
}
