﻿:root {
    --login-navy: #0b1628;
    --login-slate: #243247;
    --login-muted: #64748b;
    --login-line: #dbe3ee;
    --login-panel: #ffffff;
    --login-blue: #1768e8;
    --login-blue-dark: #0f4fb8;
    --login-gold: #c9972c;
    --login-green: #12866f;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(90deg, rgba(7, 15, 29, 0.88) 0%, rgba(15, 28, 48, 0.76) 48%, rgba(15, 23, 42, 0.7) 100%),
        url('../img/background.jpg') center center / cover no-repeat;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    padding: 28px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
        radial-gradient(circle at 12% 20%, rgba(23, 104, 232, 0.18), transparent 330px);
}

.login-page-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1480px);
    margin: 0 auto;
    min-height: calc(100vh - 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 470px);
    gap: clamp(34px, 6vw, 92px);
    align-items: center;
}

.login-page-hero {
    color: #fff;
}

.login-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.login-page-back,
.login-page-badge {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-page-back {
    gap: 9px;
    padding: 10px 18px;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-page-back:hover,
.login-page-back:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.login-page-badge {
    padding: 10px 16px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.login-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.login-page-eyebrow::before {
    content: "";
    width: 44px;
    height: 2px;
    border-radius: 999px;
    background: var(--login-gold);
}

.login-page-title {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(3rem, 2rem + 3.1vw, 5.4rem);
    line-height: 0.97;
    letter-spacing: -0.055em;
    font-weight: 650;
}

.login-page-description {
    max-width: 730px;
    margin: 0;
    color: rgba(248, 250, 252, 0.86);
    line-height: 1.78;
    font-size: clamp(1rem, 0.96rem + 0.22vw, 1.18rem);
    font-weight: 600;
}

.login-page-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.login-page-trust-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.18);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.24);
    font-size: 12px;
    font-weight: 800;
}

.login-page-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 34px;
    max-width: 650px;
}

.login-page-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 20px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.login-page-feature .bi {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 19px;
}

.login-page-feature span {
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.login-card {
    width: 100%;
    max-height: min(92vh, 920px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 34px;
    background: var(--login-panel);
    box-shadow: 0 34px 90px rgba(2, 6, 23, 0.34);
    scrollbar-gutter: stable;
}

.card.login-card {
    padding: 34px !important;
}

.logo {
    display: block;
    width: auto;
    max-width: min(92px, 24vw);
    max-height: 72px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.login-card-brand {
    position: relative;
    margin-bottom: 16px !important;
    padding: 2px 0 18px;
}

.login-card-brand::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(210px, 58%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(203, 213, 225, 0), rgba(203, 213, 225, 1), rgba(203, 213, 225, 0));
}

.login-card .text-center.mb-4 .mt-2 {
    margin-top: 14px !important;
    margin-bottom: 5px;
}

.login-card .text-center.mb-4 h4 {
    font-family: "Segoe UI Variable Display", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.36rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0.14em;
    color: #1e293b;
    text-transform: uppercase;
}

.login-card .text-center.mb-4 small {
    display: block;
    line-height: 1.45;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #64748b !important;
}

.login-card-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.login-card-intro-line {
    width: 54px;
    height: 1px;
    background: #e2e8f0;
}

.nav-pills {
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.nav-pills .nav-link {
    min-height: 48px;
    border-radius: 999px;
    color: #1d4ed8;
    font-weight: 850;
    letter-spacing: 0.01em;
}

.nav-pills .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--login-blue), var(--login-blue-dark));
    box-shadow: 0 12px 28px rgba(23, 104, 232, 0.28);
}

.auth-form {
    display: grid;
    gap: 4px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.auth-field {
    min-width: 0;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-form .mb-3 {
    margin-bottom: 14px !important;
}

.auth-form .form-label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 850;
}

.auth-form .text-muted {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
}

.form-control,
.form-select,
.input-group-text,
.btn {
    border-radius: 13px;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: #d7e0eb;
    color: #0f172a;
    font-weight: 650;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #7aa7f6;
    box-shadow: 0 0 0 4px rgba(23, 104, 232, 0.13);
}

.input-group-text {
    min-width: 50px;
    justify-content: center;
    color: #334155;
    border-color: #d7e0eb;
    background: #f8fafc;
}

.btn-primary,
.btn-success,
.btn-warning {
    min-height: 52px;
    border: 0;
    font-weight: 850;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--login-blue), var(--login-blue-dark));
    box-shadow: 0 14px 30px rgba(23, 104, 232, 0.26);
}

.btn-success {
    background: linear-gradient(135deg, #16a085, var(--login-green));
    box-shadow: 0 14px 30px rgba(18, 134, 111, 0.22);
}

.btn-warning {
    background: linear-gradient(135deg, #f7c948, #e9a21b);
}

.btn-outline-secondary {
    border-color: #d7e0eb;
    color: #64748b;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.login-help-row {
    display: flex;
    justify-content: flex-end;
    margin: 4px 2px 10px;
}

.login-help-link {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.login-help-link:hover,
.login-help-link:focus {
    color: #0f4fb8;
    text-decoration: underline;
}

.reset-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.reset-panel-title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.reset-panel-text {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* Fokus keyboard yang jelas (di luar default browser) */
.nav-pills .nav-link:focus-visible,
.login-help-link:focus-visible,
.auth-form .btn:focus-visible,
.reset-panel-heading .btn:focus-visible {
    outline: 3px solid rgba(23, 104, 232, 0.45);
    outline-offset: 2px;
}

.login-page-back:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .login-page-shell {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 450px);
        gap: 34px;
    }
}

@media (max-width: 991.98px) {
    body {
        padding: 18px;
    }

    .login-page-shell {
        grid-template-columns: 1fr;
        align-items: start;
        min-height: auto;
    }

    .login-page-hero {
        padding-top: 10px;
    }

    .login-page-title {
        max-width: 820px;
    }

    .login-page-description {
        max-width: 760px;
    }

    .login-card {
        max-width: 590px;
        margin: 0 auto 18px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding: 10px;
    }

    .login-page-shell {
        gap: 14px;
    }

    .login-page-actions {
        margin-bottom: 14px;
    }

    .login-page-title {
        margin-bottom: 10px;
        font-size: 2rem;
        line-height: 1.02;
    }

    .login-page-description {
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .login-page-eyebrow {
        margin-bottom: 10px;
    }

    .login-page-trust-strip {
        gap: 7px;
        margin-top: 12px;
    }

    .login-page-trust-strip span {
        min-height: 28px;
        padding: 5px 9px;
        font-size: 10px;
    }

    .login-page-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .login-page-feature {
        min-height: auto;
        padding: 10px;
        border-radius: 14px;
    }

    .login-page-feature .bi {
        width: 32px;
        height: 32px;
        border-radius: 11px;
        font-size: 15px;
    }

    .login-page-feature span {
        font-size: 0.76rem;
        line-height: 1.25;
    }

    .login-card {
        border-radius: 24px;
        max-height: none;
    }

    .card.login-card {
        padding: 24px !important;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 575.98px) {
    body {
        padding: 8px;
    }

    .login-page-shell {
        gap: 10px;
    }

    .login-page-actions {
        align-items: center;
        flex-direction: row;
        gap: 7px;
        margin-bottom: 10px;
    }

    .login-page-back,
    .login-page-badge {
        justify-content: center;
        width: auto;
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .login-page-eyebrow {
        margin-bottom: 7px;
        font-size: 10px;
        letter-spacing: 0.11em;
    }

    .login-page-eyebrow::before {
        width: 28px;
    }

    .login-page-title {
        font-size: 1.65rem;
        letter-spacing: -0.04em;
    }

    .login-page-description {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .login-page-trust-strip {
        display: none;
    }

    .login-page-feature-list {
        display: none;
    }

    .login-page-hero {
        padding-top: 0;
    }

    .login-page-badge {
        display: none;
    }

    .login-page-back {
        max-width: 100%;
    }

    .card.login-card {
        padding: 16px !important;
    }

    .logo {
        max-width: min(66px, 20vw);
        max-height: 48px;
    }

    .login-card-brand {
        margin-bottom: 10px !important;
        padding-bottom: 12px;
    }

    .login-card .text-center.mb-4 h4 {
        font-size: 1rem;
        letter-spacing: 0.09em;
    }

    .login-card .text-center.mb-4 small {
        font-size: 0.78rem;
    }

    .login-card-intro {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .login-card-intro-line {
        width: 28px;
    }

    .nav-pills {
        padding: 5px;
    }

    .nav-pills .nav-link {
        min-height: 42px;
        font-size: 15px;
    }

    .auth-form {
        gap: 2px;
    }

    .auth-form .mb-3 {
        margin-bottom: 9px !important;
    }

    .auth-form .form-label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .auth-form .text-muted {
        font-size: 11px;
        line-height: 1.4;
    }

    .reset-panel-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .form-control,
    .form-select,
    .input-group-text,
    .btn {
        min-height: 44px;
    }

    #register-pane .btn-success {
        margin-top: 4px;
    }
}

