/* ═══════════════════════════════════════════════════════════════════
   Login HR AccessGo (2026-10-20)
   Layout: dua kolom — panel identitas gelap (tanda logo beranimasi +
   jam WIB ala layar mesin absensi) | form di atas kertas warm-neutral.
   Di HP panel identitas jadi pita ringkas di atas form.
   Warna = token ops-theme (standart-layout-theme.md §17/§17b).
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Inter';
    font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('fonts/Inter-Variable.woff2') format('woff2-variations'), url('fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('fonts/JetBrainsMono-Variable.woff2') format('woff2-variations'), url('fonts/JetBrainsMono-Variable.woff2') format('woff2');
}

:root {
    --malam: #100D0A;
    --malam-2: #17130F;
    --malam-garis: #2A231C;
    --krem: #F0EAE1;
    --krem-redup: #8C8378;
    --oranye: #F2600C;
    --oranye-gelap: #D14E02;
    --oranye-terang: #FF7A2E;
    --kertas: #F7F6F4;
    --permukaan: #FFFFFF;
    --garis: #E6E2DC;
    --tinta: #262320;
    --tinta-2: #756F66;
    --tinta-3: #A39C90;
    --merah: #C6323A;
    --merah-latar: #FBEAEA;
    --kuning-latar: #FBF1DD;
    --kuning: #85580A;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --halus: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    background: var(--kertas);
    color: var(--tinta);
    -webkit-font-smoothing: antialiased;
}

.masuk {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(380px, 46%) 1fr;
}

/* ── Panel identitas ──────────────────────────────────────────────── */
.identitas {
    position: relative;
    overflow: hidden;
    background: var(--malam);
    color: var(--krem);
    padding: 48px 56px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}
.identitas::before {
    /* cahaya oranye hangat, bergeser pelan */
    content: "";
    position: absolute;
    width: 640px; height: 640px;
    left: -180px; top: -220px;
    background: radial-gradient(circle, rgba(242, 96, 12, .34), rgba(242, 96, 12, .08) 45%, transparent 68%);
    z-index: -1;
    animation: cahaya 14s ease-in-out infinite alternate;
}
.identitas::after {
    /* kisi titik halus */
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(240, 234, 225, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
    -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
    z-index: -1;
}
@keyframes cahaya { to { transform: translate(140px, 120px) scale(1.15); } }

.identitas-isi { max-width: 460px; }

.merek { display: flex; align-items: center; gap: 14px; }
.tanda {
    width: 54px; height: 54px;
    padding: 9px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(242, 96, 12, .6);
    flex-shrink: 0;
}
.tanda-cincin {
    fill: none;
    stroke: #A6A8AA;
    stroke-width: 29.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transform-origin: 89.5px 90px;
    animation: cincin 1.1s var(--halus) .15s backwards;
}
.tanda-titik-besar, .tanda-titik-kecil { fill: #FA5000; transform-box: fill-box; transform-origin: center; }
.tanda-titik-besar { animation: titik .7s cubic-bezier(.34, 1.56, .64, 1) .75s backwards; }
.tanda-titik-kecil { animation: titik .6s cubic-bezier(.34, 1.56, .64, 1) .95s backwards; }
@keyframes cincin { from { stroke-dashoffset: 100; transform: rotate(-120deg); } }
@keyframes titik { from { transform: scale(0); } }

.merek-nama { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.merek-nama b { color: var(--oranye-terang); font-weight: 700; }

.judul {
    margin: 64px 0 14px;
    font-size: clamp(30px, 3.3vw, 44px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.035em;
    text-wrap: balance;
    animation: naik .8s var(--halus) .3s backwards;
}
.sub {
    margin: 0;
    color: var(--krem-redup);
    font-size: 15px;
    line-height: 1.6;
    max-width: 38ch;
    animation: naik .8s var(--halus) .42s backwards;
}
@keyframes naik { from { opacity: 0; transform: translateY(14px); } }

/* jam ala layar mesin absensi */
.jam {
    margin-top: 44px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 14px;
    border: 1px solid var(--malam-garis);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
    animation: naik .8s var(--halus) .55s backwards;
}
.jam-hari {
    font-size: 11px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--krem-redup);
}
.jam-waktu {
    font-family: var(--mono);
    font-size: 40px; font-weight: 500;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--krem);
}
.jam-waktu small { font-size: 20px; color: var(--krem-redup); margin-left: 1px; }
.jam-waktu em { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--oranye-terang); letter-spacing: .08em; margin-left: 6px; vertical-align: 6px; }

.identitas-kaki { margin: 40px 0 0; font-size: 12px; color: var(--krem-redup); }

/* ── Form ─────────────────────────────────────────────────────────── */
.panel-form {
    display: grid;
    place-items: center;
    padding: 40px 24px;
}
.kartu {
    width: 100%;
    max-width: 380px;
    animation: naik .7s var(--halus) .2s backwards;
}
.kartu h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.kartu-sub { margin: 6px 0 28px; color: var(--tinta-2); font-size: 14px; }

.peringatan {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 11px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: var(--merah-latar);
    color: #8E1F26;
    font-size: 13px; line-height: 1.5;
    border: 1px solid #F3CFCF;
}
.peringatan svg { width: 18px; height: 18px; fill: var(--merah); flex-shrink: 0; margin-top: 1px; }
.peringatan-kuning { background: var(--kuning-latar); color: var(--kuning); border-color: #EFDDB5; margin: 20px 0 0; }

.isian { display: block; margin-bottom: 16px; }
.isian-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--tinta); }
.isian-kotak {
    position: relative;
    display: flex; align-items: center;
    height: 46px;
    background: var(--permukaan);
    border: 1px solid var(--garis);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(20, 16, 10, .04);
    transition: border-color .15s, box-shadow .15s;
}
.isian-kotak:focus-within { border-color: var(--oranye); box-shadow: 0 0 0 4px rgba(242, 96, 12, .14); }
.isian-kotak > svg { width: 17px; height: 17px; fill: var(--tinta-3); margin: 0 10px 0 14px; flex-shrink: 0; transition: fill .15s; }
.isian-kotak:focus-within > svg { fill: var(--oranye); }
.isian-kotak input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 15px; color: var(--tinta);
    padding: 0 14px 0 0;
}
.lihat {
    width: 42px; height: 100%;
    display: grid; place-items: center;
    border: 0; background: none; cursor: pointer;
    border-radius: 0 10px 10px 0;
    color: var(--tinta-3);
}
.lihat svg { width: 18px; height: 18px; fill: currentColor; }
.lihat:hover, .lihat.aktif { color: var(--tinta); }
.lihat .mata-tutup, .lihat.aktif .mata-buka { display: none; }
.lihat.aktif .mata-tutup { display: block; }
.lihat:focus-visible { outline: 2px solid var(--oranye); outline-offset: -3px; }

.baris { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
.centang { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta-2); cursor: pointer; }
.centang input { width: 16px; height: 16px; accent-color: var(--oranye); margin: 0; }
.tautan { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--oranye-gelap); cursor: pointer; }
.tautan:hover { text-decoration: underline; }
.tautan:focus-visible, .centang input:focus-visible { outline: 2px solid var(--oranye); outline-offset: 2px; border-radius: 3px; }

.tombol {
    width: 100%; height: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 0; border-radius: 10px;
    background: var(--oranye);
    color: #fff;
    font: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px -12px rgba(242, 96, 12, .9);
    transition: background .15s, transform .1s;
}
.tombol svg { width: 17px; height: 17px; fill: currentColor; transition: transform .2s var(--halus); }
.tombol:hover { background: var(--oranye-gelap); }
.tombol:hover svg { transform: translateX(3px); }
.tombol:active { transform: translateY(1px); }
.tombol:focus-visible { outline: 3px solid rgba(242, 96, 12, .35); outline-offset: 2px; }
.tombol:disabled { opacity: .75; cursor: progress; }
.tombol.memproses svg { animation: putar .8s linear infinite; }
@keyframes putar { to { transform: rotate(360deg); } }
.tombol-kecil { width: auto; height: 40px; padding: 0 20px; font-size: 14px; }

.goyang { animation: goyang .38s; }
@keyframes goyang { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── Modal lupa password ──────────────────────────────────────────── */
.modal-lupa {
    position: fixed; inset: 0; z-index: 50;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(16, 13, 10, .55);
    backdrop-filter: blur(3px);
}
.modal-lupa[hidden] { display: none; }
.modal-lupa-kotak {
    width: 100%; max-width: 400px;
    background: var(--permukaan);
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45);
    animation: naik .35s var(--halus);
}
.modal-lupa-kotak h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em; }
.modal-lupa-kotak p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--tinta); }
.modal-lupa-kotak .kecil { font-size: 13px; color: var(--tinta-2); margin-bottom: 20px; }

/* ── HP & tablet ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .masuk { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .identitas { padding: 22px 20px 20px; }
    .identitas-isi { max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
    .tanda { width: 44px; height: 44px; padding: 7px; border-radius: 13px; }
    .merek-nama { font-size: 16px; }
    .judul, .sub, .identitas-kaki { display: none; }
    .jam { margin: 0; padding: 8px 12px; border-radius: 11px; gap: 3px; align-items: flex-end; }
    .jam-hari { font-size: 9.5px; letter-spacing: .08em; }
    .jam-waktu { font-size: 22px; }
    .jam-waktu small { font-size: 12px; }
    .jam-waktu em { font-size: 10px; vertical-align: 3px; margin-left: 4px; }
    .panel-form { place-items: start center; padding: 30px 20px 40px; }
}
@media (max-width: 380px) {
    .jam-hari { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
