/* ===================================================================
   P171 "Dark Glass Pro"
   Tampilan kartu login / 2FA (v1.2.63) - sumber tunggal untuk:
     login.php, setup_2fa.php, verify_2fa.php,
     adm/login.php, adm/setup_2fa.php

   Semua rule di-scope memakai #p171-login-page (container) dan
   #p171-login (kartu) supaya plugins/css/main.css yang juga dipakai
   pd/surat, pd/sis, pr.php, adm/verify_2fa.php & halaman lain tidak
   ikut berubah. Markup tiap halaman memakai struktur:
     .container-login100#p171-login-page > .wrap-login100#p171-login
       > .p171-brand, form.login100-form.validate-form, .p171-footer
   Ikon memakai Font Awesome (sudah dimuat semua halaman ini), bukan
   glyph Material-Design-Iconic-Font.

   Diambil apa adanya dari blok <style> di login.php; jangan menulis
   ulang rule yang sama di halaman - ubah di sini agar kelima halaman
   selalu identik.
   =================================================================== */

/* ---------- Latar (overlay di atas foto sekolah) ---------- */
#p171-login-page.container-login100 {
    background-color: #0b1220;
    padding: 24px 16px;
    min-height: calc(100vh - 38px);
}
#p171-login-page.container-login100::before {
    content: "";
    background-color: transparent;
    background-image: linear-gradient(135deg,
    rgba(6, 15, 33, 0.93) 0%,
    rgba(9, 22, 48, 0.86) 45%,
    rgba(12, 29, 60, 0.94) 100%);
}

/* ---------- Kartu (glass) ---------- */
#p171-login.wrap-login100 {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 34px 34px 22px 34px;
    border-radius: 24px;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
    0 30px 70px -20px rgba(2, 6, 23, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#p171-login.wrap-login100::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 45%, #6366f1 100%);
}

/* ---------- Branding ---------- */
#p171-login .p171-brand {
    text-align: center;
    margin-bottom: 24px;
}
#p171-login .p171-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 16px auto;
    padding: 8px;
    border-radius: 20px;
    background: #f8fafc;
    box-shadow:
    0 10px 24px -8px rgba(2, 6, 23, 0.8),
    0 0 0 4px rgba(96, 165, 250, 0.16);
}
#p171-login .p171-logo picture,
#p171-login .p171-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#p171-login .p171-logo > i {
    font-size: 34px;
    color: #1d4ed8;
}
#p171-login .p171-title {
    margin: 0;
    font-family: inherit;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #f8fafc;
}
#p171-login .p171-subtitle {
    margin: 7px 0 0 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.72);
}
#p171-login .p171-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.28);
}

/* ---------- Field & input ---------- */
#p171-login .p171-field {
    margin-bottom: 16px;
}
#p171-login .p171-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px 2px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.78);
}
#p171-login .p171-label i {
    font-size: 11px;
    color: rgba(147, 197, 253, 0.85);
}
#p171-login .p171-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.28);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
#p171-login .p171-input-wrap:hover {
    border-color: rgba(148, 163, 184, 0.45);
}
#p171-login .p171-input-wrap:focus-within {
    background: rgba(96, 165, 250, 0.09);
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}
#p171-login .p171-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 15px;
    color: rgba(203, 213, 225, 0.6);
    pointer-events: none;
    transition: color 0.18s ease;
}
#p171-login .p171-input-wrap:focus-within .p171-input-icon {
    color: #93c5fd;
}
#p171-login .input100 {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    padding: 0 14px 0 44px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: #f8fafc;
}
#p171-login .input100:focus,
#p171-login .input100.has-val {
    padding-left: 44px;
}
#p171-login .input100::placeholder {
    color: rgba(148, 163, 184, 0.75);
    opacity: 1;
}
#p171-login .input100:focus::placeholder {
    color: rgba(148, 163, 184, 0.55);
}
#p171-login input.input100[type="number"] {
    -moz-appearance: textfield;
}
#p171-login input.input100[type="number"]::-webkit-outer-spin-button,
#p171-login input.input100[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#p171-login .p171-input-wrap--pass .input100 {
    padding-right: 50px;
}
#p171-login .p171-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(203, 213, 225, 0.65);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}
#p171-login .p171-eye:hover,
#p171-login .p171-eye:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    color: #e2e8f0;
    outline: none;
}
#p171-login .p171-eye[aria-pressed="true"] {
    color: #93c5fd;
}

/* ---------- Captcha ---------- */
#p171-login .p171-captcha {
    margin-bottom: 20px;
}
#p171-login .p171-captcha-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px 2px;
}
#p171-login .p171-captcha-head .p171-label {
    margin: 0;
}
#p171-login .p171-captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.32);
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
#p171-login .p171-captcha-refresh:hover,
#p171-login .p171-captcha-refresh:focus-visible {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(96, 165, 250, 0.55);
    color: #ffffff;
    outline: none;
}
#p171-login .p171-captcha-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
#p171-login .p171-captcha-img {
    flex: 0 0 auto;
    width: auto;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: #0f172a;
    box-shadow: 0 6px 16px -10px rgba(2, 6, 23, 0.9);
}
#p171-login .p171-captcha-row .p171-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- Tombol utama ---------- */
#p171-login .p171-btn.login100-form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    height: 50px;
    min-height: 50px;
    margin-top: 4px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background-image: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
    0 10px 24px -10px rgba(37, 99, 235, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
/* Matikan lapisan putih dari plugins/css/main.css */
#p171-login .p171-btn::before {
    content: none;
}
#p171-login .p171-btn:hover {
    color: #ffffff;
    filter: brightness(1.06);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.9);
}
#p171-login .p171-btn:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    filter: brightness(0.97);
}
#p171-login .p171-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
#p171-login .p171-btn.is-disabled,
#p171-login .p171-btn:disabled {
    background-image: none;
    background-color: rgba(100, 116, 139, 0.45);
    color: rgba(226, 232, 240, 0.7);
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
    -webkit-transform: none;
    transform: none;
}

/* ---------- Link, catatan, footer ---------- */
#p171-login .p171-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 0 0;
}
#p171-login .p171-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}
#p171-login .p171-link:hover {
    color: #dbeafe;
    background: rgba(96, 165, 250, 0.12);
    text-decoration: none;
}
#p171-login .p171-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-family: inherit;
    font-size: 11.5px;
    line-height: 1.55;
    color: rgba(203, 213, 225, 0.72);
}
#p171-login .p171-note i {
    margin-top: 2px;
    font-size: 12px;
    color: #93c5fd;
}
#p171-login .p171-note-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
#p171-login .p171-note-browser {
    padding-top: 7px;
    border-top: 1px dashed rgba(148, 163, 184, 0.22);
}
/* Bila catatan browser adalah isi pertama, garis pemisah tidak diperlukan */
#p171-login .p171-note-body > .p171-note-browser:first-child {
    padding-top: 0;
    border-top: 0;
}
#p171-login .p171-note-browser .browser-name {
    white-space: nowrap;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
}
#p171-login .p171-note-browser i {
    margin: 0 2px 0 0;
    font-size: 12px;
    color: #93c5fd;
}
#p171-login .p171-note.is-warn {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.38);
    color: rgba(253, 230, 138, 0.95);
}
#p171-login .p171-note.is-warn > i {
    color: #fbbf24;
}
#p171-login .p171-note-warn {
    display: none;
    align-items: flex-start;
    gap: 6px;
    font-weight: 600;
    color: #fbbf24;
}
#p171-login .p171-note.is-warn .p171-note-warn {
    display: flex;
}
#p171-login .p171-note-warn i {
    margin: 1px 0 0 0;
    font-size: 12px;
    color: #fbbf24;
}
#p171-login .p171-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(148, 163, 184, 0.62);
}

/* ---------- Alert ---------- */
#p171-login .p171-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.55;
    text-align: left;
}
#p171-login .p171-alert > i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 14px;
}
#p171-login .p171-alert strong {
    font-weight: 700;
}
#p171-login .p171-alert-danger {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(248, 113, 113, 0.45);
    border-left-color: #f87171;
}
#p171-login .p171-alert-warning {
    color: #fde68a;
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(251, 191, 36, 0.42);
    border-left-color: #fbbf24;
}
#p171-login .p171-alert-info {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.4);
    border-left-color: #60a5fa;
}

/* ---------- Tooltip validasi main.js (dipindah ke bawah field) ---------- */
#p171-login .p171-input-wrap.alert-validate {
    border-color: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}
#p171-login .alert-validate::before {
    content: attr(data-validate);
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(69, 10, 10, 0.96);
    color: #fecaca;
    font-family: inherit;
    font-size: 11.5px;
    line-height: 1.4;
    text-align: left;
    -webkit-transform: none;
    transform: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 5;
}
#p171-login .alert-validate::after {
    content: none;
}
#p171-login .alert-validate:hover::before {
    visibility: visible;
    opacity: 1;
}
@media (max-width: 992px) {
    #p171-login .alert-validate::before {
        visibility: visible;
        opacity: 1;
    }
}

/* ---------- Harmonisasi overlay lupa / reset password ---------- */
.lupapass-overlay {
    background: rgba(2, 6, 23, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.lupapass-card {
    max-width: 410px;
    padding: 30px 26px;
    border-radius: 22px;
    box-shadow: 0 30px 70px -20px rgba(2, 6, 23, 0.85);
}
.lupapass-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px auto;
    border-radius: 16px;
    font-size: 22px;
    color: #1d4ed8;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 10px 20px -12px rgba(30, 58, 138, 0.55);
}
.lupapass-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    border-radius: 10px;
}
.lupapass-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 22px -12px rgba(37, 99, 235, 0.8);
}
.lupapass-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
/* main.css memaksa placeholder input jadi putih (#fff) — tidak terbaca
di kartu overlay yang berlatar terang. */
.lupapass-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}
.lupapass-input::-webkit-input-placeholder {
    color: #9ca3af;
}
.lupapass-input::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}
.lupapass-input:-ms-input-placeholder {
    color: #9ca3af;
}
.lupapass-toggle-pass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 6px;
    line-height: 1;
}
.lupapass-toggle-pass:hover {
    background: #eff6ff;
}

/* ---------- Marquee ---------- */
.marquee-container {
    height: 38px;
    background: linear-gradient(90deg, #0b1220 0%, #12233f 50%, #0e1b31 100%);
    border-bottom: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 4px 18px rgba(2, 6, 23, 0.55);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #cbd5e1;
}
.marquee-content {
    animation: marquee 30s linear infinite;
}
.has-marquee .limiter {
    padding-top: 38px;
}

/* ---------- Responsif ---------- */
@media (max-width: 576px) {
    #p171-login-page.container-login100 {
        min-height: calc(100vh - 34px);
        padding: 18px 14px;
    }
    #p171-login.wrap-login100 {
        padding: 26px 20px 18px 20px;
        border-radius: 18px;
    }
    #p171-login .p171-title {
        font-size: 20px;
    }
    #p171-login .p171-logo {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    #p171-login .p171-captcha-row {
        flex-wrap: wrap;
    }
    #p171-login .p171-captcha-img {
        width: 100%;
        height: 44px;
        object-fit: cover;
    }
    #p171-login .p171-captcha-row .p171-input-wrap {
        flex: 1 1 100%;
    }
    .marquee-container {
        height: 34px;
        font-size: 12px;
    }
    .has-marquee .limiter {
        padding-top: 34px;
    }
}
@media (prefers-reduced-motion: reduce) {
    #p171-login *,
    #p171-login *::before,
    #p171-login *::after {
        transition: none !important;
        animation: none !important;
    }
    .marquee-content {
        animation: none !important;
    }
}

/* ===================================================================
   v1.2.64: komponen tambahan untuk halaman 2FA & login admin
   (setup_2fa.php, verify_2fa.php, adm/login.php, adm/setup_2fa.php).
   Semua rule tetap di-scope #p171-login (kartu) atau berprefix
   .p171-modal (dialog di luar kartu) supaya halaman lain yang memakai
   plugins/css/main.css tidak ikut berubah.
   =================================================================== */

/* ---------- Paragraf / teks bantuan di dalam kartu ---------- */
#p171-login .p171-help {
    margin: 0 0 12px 0;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.65;
    text-align: left;
    color: rgba(203, 213, 225, 0.78);
}
#p171-login .p171-help:last-child {
    margin-bottom: 0;
}
#p171-login .p171-help strong {
    font-weight: 700;
    color: #e2e8f0;
}
#p171-login .p171-help a {
    color: #93c5fd;
    text-decoration: underline;
}
#p171-login .p171-help a:hover {
    color: #dbeafe;
}

/* ---------- Grup isi (di tengah) ---------- */
#p171-login .p171-section {
    margin-bottom: 18px;
    text-align: center;
}
#p171-login .p171-section:last-child {
    margin-bottom: 0;
}

/* ---------- QR Code (setup 2FA) ---------- */
#p171-login .p171-qr {
    display: inline-block;
    max-width: 100%;
    margin: 2px 0 10px 0;
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 12px 26px -16px rgba(2, 6, 23, 0.9);
    line-height: 0;
}
#p171-login .p171-qr img {
    display: block;
    width: 190px;
    height: 190px;
}

/* ---------- Kode manual (secret 2FA) ---------- */
#p171-login .p171-secret {
    display: inline-block;
    max-width: 100%;
    margin: 2px 0 0 0;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.12);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #dbeafe;
    overflow-wrap: anywhere;
}

/* ---------- Badge Google Play ---------- */
#p171-login .p171-store-badge {
    display: inline-block;
    margin-top: 6px;
    line-height: 0;
}
#p171-login .p171-store-badge img {
    height: 46px;
    width: auto;
    border-radius: 10px;
}

/* ---------- Select di dalam input-wrap (tapel & semester) ---------- */
#p171-login select.input100 {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 38px;
    color: #f8fafc;
    cursor: pointer;
}
#p171-login select.input100 option {
    background: #0f172a;
    color: #f8fafc;
}
#p171-login .p171-input-wrap--select::after {
    content: "\f0d7";
    position: absolute;
    right: 14px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-family: FontAwesome;
    font-size: 12px;
    color: rgba(203, 213, 225, 0.6);
    pointer-events: none;
}
#p171-login .p171-input-wrap--select:focus-within::after {
    color: #93c5fd;
}

/* ---------- Checkbox (ingat perangkat) ---------- */
#p171-login .p171-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 16px 0;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
    color: rgba(203, 213, 225, 0.78);
    cursor: pointer;
}
#p171-login .p171-check input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0 0;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}
#p171-login .p171-check input[type="checkbox"]:checked {
    border-color: #3b82f6;
    background: #2563eb;
}
#p171-login .p171-check input[type="checkbox"]:checked::after {
    content: "\f00c";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-family: FontAwesome;
    font-size: 10px;
    line-height: 1;
    color: #ffffff;
}
#p171-login .p171-check input[type="checkbox"]:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* ---------- Keterangan kecil / timer ---------- */
#p171-login .p171-hint {
    margin: 8px 0 0 0;
    font-family: inherit;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.62);
}
#p171-login .p171-hint.is-timer {
    font-weight: 600;
    color: #fbbf24;
}

/* ---------- Link berbentuk tombol ---------- */
#p171-login button.p171-link {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
#p171-login .p171-links--stack {
    flex-direction: column;
    gap: 2px;
    margin: 10px 0 0 0;
}


/* ---------- Alert versi legacy (.alert dari main.css) ----------
   Dipakai $error/$success dan oleh JS verify_2fa.php yang menyuntik
   <div class="alert alert-success">. */
#p171-login .alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.55;
    text-align: left;
}
#p171-login .alert-danger {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(248, 113, 113, 0.45);
    border-left-color: #f87171;
}
#p171-login .alert-success {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(74, 222, 128, 0.42);
    border-left-color: #4ade80;
}

/* ---------- Modal kirim kode email (verify_2fa.php) ---------- */
.p171-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(2, 6, 23, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.p171-modal.active {
    display: flex;
}
.p171-modal-card {
    width: 100%;
    max-width: 410px;
    padding: 22px 22px 16px 22px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 30px 70px -20px rgba(2, 6, 23, 0.85);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.p171-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.p171-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #f8fafc;
}
.p171-modal-close {
    padding: 2px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: rgba(203, 213, 225, 0.7);
    cursor: pointer;
}
.p171-modal-close:hover,
.p171-modal-close:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.p171-modal-body {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(203, 213, 225, 0.78);
}
.p171-modal-body p {
    margin: 0 0 10px 0;
}
.p171-modal-body hr {
    margin: 14px 0;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.p171-modal-label {
    display: block;
    margin: 0 0 6px 2px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.78);
}
.p171-modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.p171-modal-error {
    margin: 12px 0 0 0;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(220, 38, 38, 0.16);
    font-size: 12.5px;
    line-height: 1.5;
    color: #fecaca;
}
.p171-modal-loading {
    margin-top: 12px;
    font-size: 12.5px;
    text-align: center;
    color: #93c5fd;
}


/* Pilihan email (radio) di dalam modal */
.p171-email-option {
    display: block;
    margin-bottom: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12.5px;
    line-height: 1.45;
    color: #e2e8f0;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}
.p171-email-option:hover {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.38);
}
.p171-email-option input[type="radio"] {
    margin: 0 8px 0 0;
    accent-color: #3b82f6;
    vertical-align: middle;
}
.p171-email-option .p171-email-label {
    display: block;
    margin: 2px 0 0 24px;
    font-size: 11px;
    color: rgba(203, 213, 225, 0.6);
}

/* Tombol di dalam modal (token sama dengan tombol utama) */
.p171-modal .p171-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: filter 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.p171-modal .p171-btn-primary {
    background-image: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(37, 99, 235, 0.9);
}
.p171-modal .p171-btn-primary:hover {
    filter: brightness(1.06);
}
.p171-modal .p171-btn-ghost {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: rgba(226, 232, 240, 0.9);
}
.p171-modal .p171-btn-ghost:hover {
    background: rgba(148, 163, 184, 0.2);
}
.p171-modal .p171-btn-sm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

/* Captcha di dalam modal */
.p171-modal .p171-captcha-img {
    flex: 0 0 auto;
    height: 42px;
    width: auto;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: #0f172a;
}
.p171-modal .p171-captcha-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
}
.p171-modal .p171-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.p171-modal .p171-input-wrap:focus-within {
    background: rgba(96, 165, 250, 0.09);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}
.p171-modal .input100 {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    color: #f8fafc;
}
.p171-modal .input100::placeholder {
    color: rgba(148, 163, 184, 0.75);
    opacity: 1;
}

@media (max-width: 576px) {
    #p171-login .p171-qr img {
        width: 168px;
        height: 168px;
    }
    #p171-login .p171-store-badge img {
        height: 42px;
    }
    .p171-modal-card {
        padding: 18px 16px 14px 16px;
        border-radius: 18px;
    }
}


/* Teks bantuan di dalam grup terpusat tetap rata tengah */
#p171-login .p171-section .p171-help {
    text-align: center;
}

