/*
|==========================================================================
| Albana · Portal Permintaan Fitur — Halaman Login
|==========================================================================
| Sengaja dibuat BERBEDA dari login Sistem RME Klinik Albana (belah dua,
| biru terang, ilustrasi klinik) agar pengguna tidak tertukar:
|  - latar navy gelap layar penuh dengan pola heksagon,
|  - kartu login di tengah dengan aksen biru–cyan,
|  - pratinjau papan permintaan sebagai identitas portal,
|  - label "Portal Permintaan Fitur" & peringatan "bukan sistem pelayanan pasien".
*/

:root {
    --pt-navy-1: #0a1430;
    --pt-navy-2: #10275a;
    --pt-blue: #1d7af3;
    --pt-cyan: #22c3d6;
    --pt-ink: #172033;
    --pt-muted: #8a94a6;
    --pt-glass: rgba(255, 255, 255, .06);
    --pt-glass-line: rgba(255, 255, 255, .12);
}

html { background: #0a1430; }
body.portal {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Lato', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: rgba(255, 255, 255, .86);
    background:
        radial-gradient(900px 520px at 85% -10%, rgba(34, 195, 214, .22), transparent 60%),
        radial-gradient(800px 600px at -10% 110%, rgba(29, 122, 243, .30), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 L54 17 L54 47 L28 62 L2 47 L2 17 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1.2'/%3E%3C/svg%3E"),
        linear-gradient(160deg, var(--pt-navy-1) 0%, var(--pt-navy-2) 100%);
    background-size: auto, auto, 56px 64px, auto;
}
body.portal a { color: #8fd8ff; }
body.portal a:hover { color: #fff; text-decoration: none; }

/* ---------- Bar atas ---------- */
.pt-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.pt-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-brand img { height: 30px; }
.pt-tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
    font-size: 11.5px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
    color: #bfe9ff; background: rgba(34, 195, 214, .12); border: 1px solid rgba(34, 195, 214, .35); white-space: nowrap;
}
.pt-tag i { color: var(--pt-cyan); }
.pt-rme {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85) !important;
    background: var(--pt-glass); border: 1px solid var(--pt-glass-line); transition: background .15s; white-space: nowrap;
}
.pt-rme:hover { background: rgba(255, 255, 255, .12); color: #fff !important; }

/* ---------- Panggung utama ---------- */
.pt-stage { flex: 1; display: flex; align-items: center; padding: 10px 0 40px; }
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; width: 100%; }

.pt-warn {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; margin-bottom: 18px;
    font-size: 12.5px; font-weight: 800; color: #ffd58a; background: rgba(240, 164, 58, .12); border: 1px solid rgba(240, 164, 58, .32);
}
.pt-hero h1 { color: #fff; font-size: 40px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.pt-hero h1 .grad { background: linear-gradient(90deg, #6fb8ff, var(--pt-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-hero p { font-size: 15.5px; line-height: 1.7; max-width: 520px; color: rgba(255, 255, 255, .75); margin-bottom: 28px; }

/* Pratinjau papan permintaan (dekoratif) */
.pt-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.pt-lane { background: var(--pt-glass); border: 1px solid var(--pt-glass-line); border-radius: 16px; padding: 10px; backdrop-filter: blur(4px); }
.pt-lane-h { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .7); padding: 2px 4px 10px; }
.pt-lane-h .d { width: 8px; height: 8px; border-radius: 50%; }
.pt-k { background: rgba(255, 255, 255, .95); border-radius: 11px; padding: 10px 11px; margin-bottom: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); border-top: 3px solid var(--c, #1d7af3); animation: ptFloat 6s ease-in-out infinite; }
.pt-k:last-child { margin-bottom: 0; }
.pt-k:nth-child(odd) { animation-delay: -3s; }
.pt-k .l1 { height: 7px; border-radius: 4px; background: #dfe6f1; width: 85%; margin-bottom: 6px; }
.pt-k .l2 { height: 7px; border-radius: 4px; background: #edf1f7; width: 60%; }
.pt-k .ch { display: inline-block; margin-top: 8px; height: 14px; width: 46px; border-radius: 7px; background: var(--cs, #eaf4ff); }
@keyframes ptFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pt-k { animation: none; } }

/* ---------- Kartu login ---------- */
.pt-card { position: relative; background: #fff; color: #3c4658; border-radius: 26px; padding: 34px 34px 28px; box-shadow: 0 30px 80px rgba(2, 10, 35, .55); overflow: hidden; }
.pt-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--pt-blue), var(--pt-cyan)); }
.pt-card .pt-ic {
    width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 21px; color: #fff; background: linear-gradient(135deg, var(--pt-blue), var(--pt-cyan)); box-shadow: 0 10px 22px rgba(29, 122, 243, .35);
}
.pt-card h2 { color: var(--pt-ink); font-size: 23px; font-weight: 900; margin: 16px 0 4px; }
.pt-card .sub { font-size: 13.5px; color: var(--pt-muted); margin-bottom: 18px; }
.pt-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; margin-bottom: 20px; font-size: 12.5px; line-height: 1.5; background: #fff8ec; border: 1px solid #f6dfb3; color: #8a5a0f; }
.pt-note i { margin-top: 2px; color: #d68b16; }
.pt-note a { color: #8a5a0f !important; font-weight: 800; text-decoration: underline; }

.pt-card .lbl { display: block; font-weight: 700; font-size: 13px; color: #3c4658; margin-bottom: 6px; }
.pt-field { position: relative; margin-bottom: 16px; }
.pt-field > i.lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #a7b0bf; font-size: 13px; pointer-events: none; }
.pt-card .form-control {
    height: 48px; border-radius: 13px; border: 1px solid #d9e1ec; padding: 10px 14px 10px 40px; font-size: 14px; color: var(--pt-ink); background: #f8fafd;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.pt-card .form-control::placeholder { color: #a7b0bf; }
.pt-card .form-control:focus { background: #fff; border-color: var(--pt-cyan); box-shadow: 0 0 0 3px rgba(34, 195, 214, .18); }
.pt-card .form-control.is-invalid { border-color: #e5484d; background-image: none; }
.pt-field .eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #8a94a6; }
.pt-field .eye:hover { background: #eef4fb; color: var(--pt-blue); }
.pt-field.pw .form-control { padding-right: 48px; }

.pt-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; margin: 0 0 20px; user-select: none; }
.pt-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.pt-check .bx { width: 19px; height: 19px; border-radius: 6px; border: 2px solid #c9d3e1; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.pt-check .bx::after { content: '\f00c'; font-family: 'Font Awesome 5 Solid'; font-weight: 900; font-size: 10px; color: #fff; opacity: 0; }
.pt-check input:checked + .bx { background: var(--pt-blue); border-color: var(--pt-blue); }
.pt-check input:checked + .bx::after { opacity: 1; }
.pt-check input:focus-visible + .bx { box-shadow: 0 0 0 3px rgba(34, 195, 214, .3); }

.pt-btn {
    width: 100%; height: 50px; border: 0; border-radius: 14px; color: #fff; font-weight: 900; font-size: 15px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: linear-gradient(90deg, var(--pt-blue), #1aa6d8); box-shadow: 0 12px 24px rgba(29, 122, 243, .35); transition: filter .15s, transform .15s;
}
.pt-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pt-btn:disabled { opacity: .75; transform: none; }
.pt-btn:focus-visible { outline: 3px solid rgba(34, 195, 214, .5); outline-offset: 2px; }

.pt-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 13px; font-size: 13px; margin-bottom: 16px; }
.pt-alert.danger { background: #fdecee; color: #a8273a; border: 1px solid #f6c8ce; }
.pt-alert.info { background: #eaf4ff; color: #124fa3; border: 1px solid #d3e8fb; }

.pt-help { text-align: center; font-size: 12.5px; color: var(--pt-muted); margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e6ecf5; }
.pt-help a { color: var(--pt-blue) !important; font-weight: 800; }

.pt-foot { padding: 18px 0 22px; font-size: 12px; color: rgba(255, 255, 255, .5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.spinner-border { display: inline-block; width: .9rem; height: .9rem; border: .15em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ptSpin .7s linear infinite; }
@keyframes ptSpin { to { transform: rotate(360deg); } }

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
    .pt-grid { grid-template-columns: 1fr; gap: 26px; }
    .pt-board { display: none; }
    .pt-hero { text-align: center; }
    .pt-hero h1 { font-size: 28px; }
    .pt-hero p { margin: 0 auto; font-size: 14px; }
    .pt-card { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .pt-top { padding: 16px 0; }
    .pt-brand img { height: 24px; }
    .pt-tag { font-size: 10px; padding: 5px 10px; }
    .pt-rme .t { display: none; }
    .pt-hero h1 { font-size: 23px; }
    .pt-hero p { display: none; }
    .pt-warn { margin-bottom: 10px; font-size: 11.5px; }
    .pt-card { padding: 28px 20px 22px; border-radius: 22px; }
    .pt-foot { justify-content: center; text-align: center; }
}
