/* =====================================================================
   Landing / Login page — Sistem Penilaian & Capaian CPL
   Token warna & tipografi khusus halaman ini, discope di bawah .landing-page
   supaya tidak bentrok dengan panel admin/dosen/mahasiswa.
   ===================================================================== */

.landing-page {
    --ink-900: #0B1B2B;
    --ink-800: #142B42;
    --ink-700: #1C3A56;
    --ink-600: #3A5068;
    --ink-300: #93A7BA;
    --amber-500: #E8A33D;
    --amber-600: #C9862A;
    --paper-050: #F3F5F4;
    --paper-100: #FFFFFF;
    --slate-700: #1E2A36;
    --slate-500: #5C6B78;
    --line: #E1E6E4;

    font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 460px);
    background: var(--paper-050);
}

.landing-page .mono {
    font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

/* ---------------- Panel kiri: hero gelap ---------------- */
.landing-hero {
    background: linear-gradient(165deg, var(--ink-900) 0%, var(--ink-800) 65%, var(--ink-700) 100%);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black 40%, transparent 90%);
    pointer-events: none;
}

.hero-top { position: relative; }

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-300);
    margin-bottom: 20px;
}

.hero-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    max-width: 480px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--ink-300);
    max-width: 420px;
    line-height: 1.6;
}

.hero-subtitle .mono {
    color: #fff;
}

/* ---------------- Signature element: kartu terminal ---------------- */
.term-card {
    position: relative;
    margin-top: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    max-width: 440px;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.term-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.term-titlebar span {
    font-size: 11px;
    color: var(--ink-300);
    letter-spacing: 0.03em;
}

.term-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber-500);
    display: inline-block;
    animation: term-pulse 2.4s ease-in-out infinite;
}

.term-body {
    padding: 16px 16px 18px;
    font-size: 12.5px;
    line-height: 1.85;
}

.term-line {
    opacity: 0;
    animation: term-line-in 0.4s ease forwards;
    white-space: pre-wrap;
    word-break: break-word;
}

.term-line .prompt { color: var(--amber-500); }
.term-line .path { color: #7FB0D9; }
.term-line .out { color: var(--ink-300); }
.term-line .ok { color: #7FCB8F; }

.term-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: var(--amber-500);
    margin-left: 2px;
    vertical-align: -1px;
    animation: term-blink 1s steps(1) infinite;
}

@keyframes term-line-in {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes term-blink { 50% { opacity: 0; } }
@keyframes term-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
    .term-line { animation: none; opacity: 1; }
    .term-cursor, .term-dot { animation: none; }
}

/* ---------------- Statistik ringkas ---------------- */
.hero-bottom { position: relative; }

.hero-stats {
    display: flex;
    gap: 28px;
    padding-top: 24px;
    margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item .stat-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.stat-item .stat-label {
    font-size: 11px;
    color: var(--ink-300);
    margin-top: 2px;
}

.hero-footer {
    font-size: 12px;
    color: var(--ink-600);
    margin-top: 24px;
}

/* ---------------- Panel kanan: form login ---------------- */
.landing-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
}

.auth-card {
    width: 100%;
    max-width: 340px;
}

.auth-card .kode-mk {
    display: inline-block;
    background: #FBEFDD;
    color: #854F0B;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.auth-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 4px;
}

.auth-card .auth-lead {
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 26px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.field-input-wrap {
    position: relative;
}

.field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--slate-700);
    background: var(--paper-100);
}

.field input:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 1px;
    border-color: var(--amber-600);
}

.toggle-pw {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 34px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    font-size: 12px;
    font-family: inherit;
}

.toggle-pw:focus-visible {
    outline: 2px solid var(--amber-500);
    border-radius: 6px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--amber-500);
    color: var(--ink-900);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s ease;
}

.btn-submit:hover { background: var(--amber-600); }
.btn-submit:focus-visible { outline: 2px solid var(--ink-700); outline-offset: 2px; }

.auth-help {
    text-align: center;
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 18px;
}

.auth-footer {
    text-align: center;
    font-size: 12px;
    color: #A3ADB5;
    margin-top: 28px;
}

/* ---------------- Responsif ---------------- */
@media (max-width: 900px) {
    .landing-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .landing-hero {
        padding: 40px 24px 32px;
    }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .term-card { max-width: 100%; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .landing-form-panel { padding: 32px 24px 48px; }
}

@media (max-width: 520px) {
    .landing-hero { padding: 32px 20px 28px; }
    .hero-eyebrow { margin-bottom: 14px; }
    .hero-title { font-size: 24px; }
    .term-card { margin-top: 24px; }
    .term-body { font-size: 11.5px; }
    .hero-stats { margin-top: 20px; padding-top: 18px; }
}

