/* ==========================================================================
   Halaman Auth (Masuk, Daftar, Lupa & Reset Password) — memakai token home.css
   ========================================================================== */

body.hp-auth {
    background: #f4f7ff;
    min-height: 100vh;
}

.hp-auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, .92fr) 1.08fr;
    min-height: 100vh;
}

/* Panel kiri ---------------------------------------------------------------- */
.hp-auth-aside {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 36px 48px;
    color: #fff;
    background:
        radial-gradient(620px 420px at 90% 10%, rgba(106, 152, 255, .5), transparent 65%),
        radial-gradient(480px 360px at 0% 100%, rgba(31, 91, 255, .45), transparent 60%),
        linear-gradient(160deg, var(--hp-navy-950) 0%, var(--hp-navy-900) 55%, var(--hp-navy-800) 100%);
}

.hp-auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 75%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 75%);
    pointer-events: none;
}

.hp-auth-aside > * {
    position: relative;
    z-index: 1;
}

.hp-auth-aside .hp-brand-mark {
    border-color: transparent;
}

.hp-auth-aside .hp-brand-text b {
    color: #fff;
}

.hp-auth-aside .hp-brand-text small {
    color: rgba(255, 255, 255, .6);
}

.hp-auth-copy {
    margin: auto 0;
    padding: 36px 0;
    max-width: 460px;
}

.hp-auth-copy .hp-eyebrow {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.hp-auth-copy h2 {
    margin-top: 18px;
    color: #fff;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.12;
}

.hp-auth-copy h2 span {
    color: #8fb1ff;
}

.hp-auth-copy > p {
    margin-top: 14px;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
}

.hp-auth-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.hp-auth-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 600;
}

.hp-auth-list .hp-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
    color: #bcd0ff;
    font-size: 16px;
}

/* Mini mockup dashboard di panel kiri */
.hp-auth-mock {
    margin-top: 34px;
    max-width: 380px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: hp-bob 7s ease-in-out infinite;
}

.hp-auth-mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 600;
}

.hp-auth-mock-head b {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.hp-auth-mock-head span.hp-up {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .2);
    color: #86efac;
    font-size: 11.5px;
    font-weight: 800;
}

.hp-auth-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 70px;
    margin-top: 14px;
}

.hp-auth-bars i {
    flex: 1;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #8fb1ff, rgba(143, 177, 255, .25));
}

.hp-auth-copyright {
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
}

/* Panel kanan --------------------------------------------------------------- */
.hp-auth-main {
    display: flex;
    flex-direction: column;
    padding: 28px 48px;
}

.hp-auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hp-auth-top .hp-brand {
    display: none;
}

.hp-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hp-line);
    color: var(--hp-text);
    font-size: 13.5px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease;
}

.hp-auth-back:hover {
    color: var(--hp-blue-600);
    border-color: #cfdcff;
}

.hp-auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 40px 0;
}

.hp-auth-head {
    margin-bottom: 28px;
}

.hp-auth-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    background: linear-gradient(135deg, var(--hp-blue-500), var(--hp-blue-700));
    box-shadow: var(--hp-shadow-blue), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.hp-auth-head h1 {
    font-size: 30px;
    font-weight: 800;
}

.hp-auth-head p {
    margin-top: 8px;
    color: var(--hp-muted);
    font-size: 15px;
}

/* Form ---------------------------------------------------------------------- */
.hp-field {
    margin-bottom: 18px;
}

.hp-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--hp-ink);
    font-size: 13.5px;
    font-weight: 700;
}

.hp-input {
    position: relative;
    display: flex;
    align-items: center;
}

.hp-input > .kp-svg {
    position: absolute;
    left: 16px;
    color: #98a3c2;
    font-size: 18px;
    pointer-events: none;
    transition: color .2s ease;
}

.hp-input input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border-radius: 14px;
    border: 1.5px solid #e1e8f5;
    background: #fff;
    color: var(--hp-ink);
    font-family: var(--hp-font);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hp-input input::placeholder {
    color: #a7b0cb;
    font-weight: 400;
}

.hp-input input:hover {
    border-color: #d0dbf2;
}

.hp-input input:focus {
    border-color: var(--hp-blue-500);
    box-shadow: 0 0 0 4px rgba(59, 116, 255, .14);
}

.hp-input:focus-within > .kp-svg {
    color: var(--hp-blue-600);
}

.hp-input.is-invalid input {
    border-color: #ef4462;
    box-shadow: 0 0 0 4px rgba(239, 68, 98, .1);
}

.hp-input.has-toggle input {
    padding-right: 50px;
}

.hp-eye {
    position: absolute;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #98a3c2;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hp-eye:hover {
    color: var(--hp-blue-600);
    background: var(--hp-blue-50);
}

.hp-eye .hp-icon-hide {
    display: none;
}

.hp-eye.is-shown .hp-icon-show {
    display: none;
}

.hp-eye.is-shown .hp-icon-hide {
    display: inline-block;
}

.hp-error {
    display: none;
    margin-top: 6px;
    color: #d92d4c;
    font-size: 12.5px;
    font-weight: 600;
}

.hp-field.has-error .hp-error {
    display: block;
}

.hp-form-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 20px;
    font-size: 13.5px;
}

.hp-link {
    color: var(--hp-blue-600) !important;
    font-weight: 700;
}

.hp-link:hover {
    text-decoration: underline;
}

.hp-captcha {
    display: flex;
    justify-content: center;
    margin: 4px 0 20px;
    max-width: 100%;
    overflow: hidden;
}

.hp-captcha:empty {
    display: none;
}

.hp-btn:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.hp-btn .hp-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: hp-spin .7s linear infinite;
}

.hp-btn.is-loading .hp-spinner {
    display: inline-block;
}

.hp-btn.is-loading .kp-svg {
    display: none;
}

@keyframes hp-spin {
    to { transform: rotate(360deg); }
}

.hp-btn-google {
    color: var(--hp-ink) !important;
    background: #fff;
    border-color: #e1e8f5;
}

.hp-btn-google:hover {
    border-color: #cfdcff;
    box-shadow: var(--hp-shadow-sm);
}

.hp-btn-google img {
    width: 18px !important;
    height: 18px;
}

.hp-btn-soft {
    color: var(--hp-blue-600) !important;
    background: var(--hp-blue-100);
}

.hp-btn-soft:hover {
    background: #d9e5ff;
}

.hp-btn-wa {
    color: #fff !important;
    background: linear-gradient(135deg, #2bd46f, #14a355);
    box-shadow: 0 16px 30px -14px rgba(20, 163, 85, .7);
}

.hp-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #a7b0cb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hp-divider::before,
.hp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hp-line);
}

.hp-auth-switch {
    margin-top: 26px;
    text-align: center;
    color: var(--hp-muted);
    font-size: 14px;
}

.hp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.hp-alert .kp-svg {
    margin-top: 2px;
    font-size: 18px;
}

.hp-alert-success {
    background: #e7f8ee;
    color: #0f7a45;
}

.hp-alert-danger {
    background: #ffecef;
    color: #c22943;
}

.hp-alert-info {
    background: #e9f0ff;
    border: 1px solid #d3e0ff;
    color: var(--hp-navy-800);
}

/* Syarat password */
.hp-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.hp-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-muted);
    font-size: 12.5px;
    font-weight: 600;
    transition: color .2s ease;
}

.hp-rules li .kp-svg {
    font-size: 14px;
    color: #c3cbe0;
}

.hp-rules li.is-ok {
    color: var(--hp-green);
}

.hp-rules li.is-ok .kp-svg {
    color: var(--hp-green);
}

.hp-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.hp-meter i {
    height: 5px;
    border-radius: 5px;
    background: #e4ebf8;
    transition: background .2s ease;
}

.hp-meter[data-score="1"] i:nth-child(-n + 1) { background: #ef4462; }
.hp-meter[data-score="2"] i:nth-child(-n + 2) { background: #f59e0b; }
.hp-meter[data-score="3"] i:nth-child(-n + 3) { background: #3b74ff; }
.hp-meter[data-score="4"] i:nth-child(-n + 4) { background: var(--hp-green); }

/* Kartu kontak (halaman daftar) */
.hp-contact-card {
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hp-line);
    box-shadow: var(--hp-shadow-sm);
}

.hp-contact-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hp-contact-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hp-text);
    font-size: 14.5px;
    font-weight: 600;
}

.hp-contact-card li .kp-svg {
    color: var(--hp-green);
    font-size: 18px;
}

.hp-contact-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.hp-contact-actions .hp-btn {
    height: auto;
    min-height: 60px;
    padding: 10px 22px;
    justify-content: flex-start;
    border-radius: 16px;
}

.hp-contact-actions .hp-btn .kp-svg {
    font-size: 24px;
}

.hp-contact-actions .hp-btn span {
    display: block;
    text-align: left;
    line-height: 1.3;
}

.hp-contact-actions .hp-btn small {
    display: block;
    font-weight: 500;
    font-size: 12.5px;
    opacity: .8;
}

.hp-contact-actions .hp-btn .hp-go {
    margin-left: auto;
    font-size: 18px;
}

/* SweetAlert2 */
.swal2-popup {
    font-family: var(--hp-font) !important;
    border-radius: 22px !important;
}

.swal2-styled.swal2-confirm {
    border-radius: 999px !important;
    background: var(--hp-blue-600) !important;
    padding: 10px 28px !important;
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 991px) {
    .hp-auth-shell {
        grid-template-columns: 1fr;
    }

    .hp-auth-aside {
        display: none;
    }

    .hp-auth-main {
        padding: 0;
    }

    .hp-auth-top {
        padding: 18px 24px 72px;
        background:
            radial-gradient(400px 220px at 90% 10%, rgba(106, 152, 255, .5), transparent 65%),
            linear-gradient(160deg, var(--hp-navy-950), var(--hp-navy-900) 60%, var(--hp-navy-800));
    }

    .hp-auth-top .hp-brand {
        display: inline-flex;
    }

    .hp-auth-top .hp-brand-mark {
        border-color: transparent;
    }

    .hp-auth-top .hp-brand-text b {
        color: #fff;
    }

    .hp-auth-top .hp-brand-text small {
        color: rgba(255, 255, 255, .6);
    }

    .hp-auth-back {
        color: #fff;
        background: rgba(255, 255, 255, .08);
        border-color: rgba(255, 255, 255, .2);
    }

    .hp-auth-back:hover {
        color: #fff;
        border-color: #fff;
    }

    .hp-auth-card {
        width: calc(100% - 32px);
        max-width: 520px;
        margin: -48px auto 40px;
        padding: 32px 28px;
        border-radius: 24px;
        background: #fff;
        box-shadow: var(--hp-shadow);
    }
}

@media (max-width: 600px) {
    .hp-auth-top {
        padding: 16px 16px 68px;
    }

    .hp-auth-back span {
        display: none;
    }

    .hp-auth-back {
        padding: 8px 10px;
    }

    .hp-auth-card {
        padding: 26px 18px;
    }

    .hp-auth-head h1 {
        font-size: 25px;
    }

    .hp-rules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .hp-captcha > div {
        transform: scale(.9);
        transform-origin: left center;
    }
}
