/*
|--------------------------------------------------------------------------
| SI-PERAHU SARUMA — Professional Claymorphism Auth v5.6
|--------------------------------------------------------------------------
| "Clay" dibuat profesional:
| - permukaan lembut dan solid, bukan bubble berlebihan;
| - radius sedang;
| - dual soft shadow + inset highlight;
| - navy/orange tetap menjadi identitas utama;
| - area form tetap kontras dan sangat jelas.
*/

:root {
    --sp-navy-950: #071a2f;
    --sp-navy-900: #0b2340;
    --sp-navy-800: #12365b;
    --sp-orange-600: #e85d04;
    --sp-orange-500: #f97316;
    --sp-orange-400: #fb923c;
    --sp-bg: #eef2f6;
    --sp-surface: #f6f8fb;
    --sp-surface-2: #ffffff;
    --sp-border: #dde4ec;
    --sp-text: #172033;
    --sp-muted: #69778a;
    --sp-danger: #c2413b;
    --sp-danger-soft: #fff0ef;
    --sp-clay-dark: rgba(132, 148, 168, .26);
    --sp-clay-light: rgba(255, 255, 255, .96);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--sp-text);
    background: var(--sp-bg);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.sp-clay-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(480px, 1.05fr) minmax(460px, .95fr);
    background:
        radial-gradient(circle at 83% 14%, rgba(249, 115, 22, .10), transparent 20%),
        radial-gradient(circle at 90% 82%, rgba(18, 54, 91, .08), transparent 24%),
        var(--sp-bg);
}

.sp-clay-brand {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, .14), transparent 23%),
        radial-gradient(circle at 82% 76%, rgba(249, 115, 22, .08), transparent 24%),
        linear-gradient(145deg, #061525 0%, var(--sp-navy-950) 48%, var(--sp-navy-900) 100%);
}

.sp-clay-brand::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -165px;
    bottom: -135px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .018);
    box-shadow:
        -95px -45px 0 28px rgba(255, 255, 255, .012),
        -185px -110px 0 52px rgba(249, 115, 22, .018);
}

.sp-brand-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--sp-orange-400), var(--sp-orange-600), rgba(249, 115, 22, .18));
}

.sp-brand-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: clamp(34px, 5vw, 72px);
    display: flex;
    flex-direction: column;
}

.sp-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sp-logo-tile {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #071a2f;
    font-size: 24px;
    background: linear-gradient(145deg, #ffa95e, var(--sp-orange-500));
    box-shadow:
        10px 10px 24px rgba(0, 0, 0, .24),
        -6px -6px 16px rgba(255, 255, 255, .04),
        inset 1px 1px 0 rgba(255, 255, 255, .38),
        inset -3px -3px 8px rgba(170, 63, 0, .16);
}

.sp-logo-small {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
}

.sp-brand-header strong {
    display: block;
    font-size: 15px;
    letter-spacing: .025em;
}

.sp-brand-header span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.sp-brand-message {
    margin: auto 0;
    max-width: 760px;
    padding: clamp(44px, 7vh, 88px) 0 40px;
}

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #ffd8b8;
    font-size: 10px;
    font-weight: 780;
    background: rgba(249, 115, 22, .085);
    border: 1px solid rgba(249, 115, 22, .15);
    box-shadow:
        inset 1px 1px rgba(255, 255, 255, .035),
        0 9px 22px rgba(0, 0, 0, .08);
}

.sp-brand-message h1 {
    margin: 22px 0 18px;
    max-width: 760px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 880;
}

.sp-brand-message h1 span {
    display: block;
    margin-top: 5px;
    color: var(--sp-orange-400);
}

.sp-brand-message p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .60);
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.78;
}

.sp-clay-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    max-width: 820px;
    margin-top: 34px;
}

.sp-principle-card {
    min-height: 132px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .026));
    border: 1px solid rgba(255, 255, 255, .055);
    box-shadow:
        13px 13px 28px rgba(0, 0, 0, .16),
        -6px -6px 18px rgba(255, 255, 255, .018),
        inset 1px 1px rgba(255, 255, 255, .035);
}

.sp-principle-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    margin-bottom: 13px;
    color: var(--sp-orange-400);
    background: rgba(249, 115, 22, .075);
    box-shadow:
        inset 2px 2px 5px rgba(255, 255, 255, .025),
        inset -2px -2px 6px rgba(0, 0, 0, .09);
}

.sp-principle-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.sp-principle-card span {
    display: block;
    color: rgba(255, 255, 255, .46);
    font-size: 10px;
    line-height: 1.55;
}

.sp-brand-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: rgba(255, 255, 255, .38);
    font-size: 10px;
}

.sp-brand-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-clay-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 72px);
}

.sp-auth-wrap {
    width: min(100%, 520px);
}

.sp-mobile-brand {
    display: none;
}

.sp-auth-card {
    position: relative;
    padding: clamp(30px, 4vw, 44px);
    border-radius: 28px;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow:
        22px 22px 46px var(--sp-clay-dark),
        -18px -18px 38px var(--sp-clay-light),
        inset 1px 1px 0 rgba(255, 255, 255, .94),
        inset -1px -1px 0 rgba(160, 174, 194, .11);
}

.sp-auth-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 5px;
    top: 0;
    left: 42px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, var(--sp-orange-600), var(--sp-orange-400));
    box-shadow: 0 5px 16px rgba(249, 115, 22, .14);
}

.sp-auth-top {
    margin-bottom: 26px;
}

.sp-auth-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--sp-orange-600);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .15em;
}

.sp-auth-top h2 {
    margin: 0;
    color: var(--sp-navy-950);
    font-size: clamp(29px, 4vw, 36px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 860;
}

.sp-auth-top p {
    margin: 10px 0 0;
    color: var(--sp-muted);
    font-size: 12px;
    line-height: 1.65;
}

.sp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 15px;
    font-size: 11px;
    line-height: 1.55;
    box-shadow:
        7px 7px 16px rgba(148, 163, 184, .12),
        -4px -4px 12px rgba(255, 255, 255, .75);
}

.sp-alert-danger {
    color: var(--sp-danger);
    border: 1px solid #f4cecb;
    background: linear-gradient(145deg, #fff6f5, var(--sp-danger-soft));
}

.sp-alert ul {
    margin: 6px 0 0;
    padding-left: 17px;
}

.sp-field {
    margin-bottom: 19px;
}

.sp-field label {
    display: inline-block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 11px;
    font-weight: 760;
}

.sp-clay-input {
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #e0e6ed;
    background: linear-gradient(145deg, #e9eef4, #f8fafc);
    box-shadow:
        inset 5px 5px 10px rgba(151, 165, 183, .17),
        inset -5px -5px 10px rgba(255, 255, 255, .88),
        0 1px 0 rgba(255, 255, 255, .70);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.sp-clay-input:focus-within {
    border-color: rgba(249, 115, 22, .58);
    box-shadow:
        inset 4px 4px 8px rgba(151, 165, 183, .13),
        inset -4px -4px 9px rgba(255, 255, 255, .96),
        0 0 0 4px rgba(249, 115, 22, .085),
        0 7px 18px rgba(15, 39, 71, .055);
    transform: translateY(-1px);
}

.sp-clay-input.is-invalid {
    border-color: #e9a9a4;
}

.sp-input-icon {
    flex: 0 0 auto;
    width: 49px;
    display: grid;
    place-items: center;
    color: #718096;
    font-size: 15px;
}

.sp-clay-input:focus-within .sp-input-icon {
    color: var(--sp-orange-600);
}

.sp-clay-input input {
    min-width: 0;
    width: 100%;
    height: 52px;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    color: #172033;
    background: transparent;
    font-size: 12px;
}

.sp-clay-input input::placeholder {
    color: #98a4b4;
}

.sp-password-button {
    flex: 0 0 auto;
    width: 48px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid rgba(148, 163, 184, .16);
    color: #748195;
    background: transparent;
    cursor: pointer;
}

.sp-password-button:hover {
    color: var(--sp-orange-600);
    background: rgba(249, 115, 22, .04);
}

.sp-password-button:focus-visible {
    outline: 2px solid rgba(249, 115, 22, .55);
    outline-offset: -3px;
}

.sp-field-error,
.sp-caps-warning {
    display: block;
    margin-top: 7px;
    font-size: 10px;
}

.sp-field-error {
    color: #b6423d;
}

.sp-caps-warning {
    color: #b45309;
}

.sp-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 22px;
}

.sp-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #657286;
    font-size: 10px;
    cursor: pointer;
    user-select: none;
}

.sp-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sp-check-ui {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: transparent;
    background: linear-gradient(145deg, #e9eef4, #f8fafc);
    border: 1px solid #dce3eb;
    box-shadow:
        3px 3px 7px rgba(146, 160, 179, .18),
        -3px -3px 7px rgba(255, 255, 255, .92),
        inset 1px 1px rgba(255, 255, 255, .72);
}

.sp-check input:checked + .sp-check-ui {
    color: #fff;
    border-color: var(--sp-orange-500);
    background: linear-gradient(145deg, var(--sp-orange-400), var(--sp-orange-600));
    box-shadow:
        4px 4px 9px rgba(249, 115, 22, .18),
        -2px -2px 6px rgba(255, 255, 255, .85),
        inset 1px 1px rgba(255, 255, 255, .27);
}

.sp-check input:focus-visible + .sp-check-ui {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .10);
}

.sp-submit {
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d95e0d;
    border-radius: 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .01em;
    cursor: pointer;
    background: linear-gradient(145deg, #ff8b38, var(--sp-orange-600));
    box-shadow:
        10px 10px 22px rgba(193, 85, 17, .20),
        -7px -7px 18px rgba(255, 255, 255, .85),
        inset 1px 1px rgba(255, 255, 255, .34),
        inset -2px -2px 5px rgba(143, 49, 0, .18);
    transition:
        transform .17s ease,
        box-shadow .17s ease,
        filter .17s ease;
}

.sp-submit:hover {
    transform: translateY(-2px);
    filter: saturate(1.04);
    box-shadow:
        12px 14px 28px rgba(193, 85, 17, .25),
        -7px -7px 18px rgba(255, 255, 255, .88),
        inset 1px 1px rgba(255, 255, 255, .34),
        inset -2px -2px 5px rgba(143, 49, 0, .18);
}

.sp-submit:active {
    transform: translateY(0);
    box-shadow:
        inset 4px 4px 8px rgba(143, 49, 0, .22),
        inset -3px -3px 7px rgba(255, 255, 255, .15);
}

.sp-submit:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .21);
    outline-offset: 3px;
}

.sp-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.sp-submit-icon {
    display: inline-grid;
    place-items: center;
}

.sp-separator {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 27px 0 17px;
    color: #a0aaba;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .14em;
}

.sp-separator::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e1e6ed;
}

.sp-separator span {
    position: relative;
    z-index: 1;
    padding: 0 11px;
    background: #f3f6f9;
}

.sp-register-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e2e7ed;
    background: linear-gradient(145deg, #f7f9fb, #edf1f5);
    box-shadow:
        8px 8px 17px rgba(151, 165, 183, .15),
        -7px -7px 16px rgba(255, 255, 255, .83),
        inset 1px 1px rgba(255, 255, 255, .72);
}

.sp-register-symbol {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--sp-orange-600);
    background: linear-gradient(145deg, #fff7ed, #fde6cf);
    box-shadow:
        4px 4px 9px rgba(192, 131, 84, .12),
        -4px -4px 9px rgba(255, 255, 255, .92),
        inset 1px 1px rgba(255, 255, 255, .82);
}

.sp-register-copy strong {
    display: block;
    color: var(--sp-navy-950);
    font-size: 11px;
}

.sp-register-copy span {
    display: block;
    margin-top: 4px;
    color: #7a8798;
    font-size: 9px;
    line-height: 1.45;
}

.sp-register-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sp-orange-600);
    text-decoration: none;
    font-size: 10px;
    font-weight: 820;
}

.sp-register-action:hover {
    color: #c2410c;
}

.sp-security {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 17px;
    padding: 11px 12px;
    border-radius: 13px;
    color: #7a8798;
    background: rgba(18, 54, 91, .035);
    font-size: 9px;
    line-height: 1.55;
}

.sp-security i {
    color: var(--sp-navy-800);
    margin-top: 1px;
}

.sp-auth-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
    color: #929eae;
    text-align: center;
    font-size: 8px;
}

.sp-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sp-orange-500);
}

@media (max-width: 1120px) {
    .sp-clay-page {
        grid-template-columns: minmax(420px, .9fr) minmax(420px, 1fr);
    }

    .sp-clay-principles {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .sp-principle-card {
        min-height: auto;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 11px;
        align-items: start;
    }

    .sp-principle-icon {
        grid-row: 1 / span 2;
        margin: 0;
    }
}

@media (max-width: 880px) {
    .sp-clay-page {
        display: block;
        min-height: 100svh;
    }

    .sp-clay-brand {
        display: none;
    }

    .sp-clay-auth {
        min-height: 100svh;
        padding: 24px;
    }

    .sp-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .sp-mobile-brand strong {
        display: block;
        color: var(--sp-navy-950);
        font-size: 12px;
    }

    .sp-mobile-brand span {
        display: block;
        margin-top: 3px;
        color: var(--sp-muted);
        font-size: 9px;
    }
}

@media (max-width: 520px) {
    .sp-clay-auth {
        align-items: flex-start;
        padding: 14px;
    }

    .sp-auth-card {
        padding: 26px 20px;
        border-radius: 23px;
        box-shadow:
            15px 15px 31px rgba(132, 148, 168, .22),
            -10px -10px 25px rgba(255, 255, 255, .92),
            inset 1px 1px 0 rgba(255, 255, 255, .94);
    }

    .sp-register-panel {
        grid-template-columns: auto 1fr;
    }

    .sp-register-action {
        grid-column: 2;
        justify-self: start;
    }

    .sp-auth-top h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* REGISTER EXTENSIONS */
.sp-password-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 8px;
}

.sp-password-meter span {
    height: 5px;
    border-radius: 99px;
    background: #dce4ec;
    box-shadow:
        inset 2px 2px 4px rgba(132,148,168,.12),
        inset -2px -2px 4px rgba(255,255,255,.72);
    transition: background .18s ease, transform .18s ease;
}

.sp-password-meter[data-strength="1"] span:nth-child(-n+1) {
    background: #d65b55;
}
.sp-password-meter[data-strength="2"] span:nth-child(-n+2) {
    background: #e39a37;
}
.sp-password-meter[data-strength="3"] span:nth-child(-n+3) {
    background: #e0a72c;
}
.sp-password-meter[data-strength="4"] span:nth-child(-n+4) {
    background: #2b9254;
}

.sp-password-help {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    color: #7b8797;
    font-size: 9px;
}

.sp-password-help strong {
    color: #526174;
}

.sp-match-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    font-size: 9px;
}

.sp-match-status.is-match {
    color: #247245;
}

.sp-match-status.is-mismatch {
    color: #b6423d;
}

.sp-auth-card.sp-register-card {
    padding-top: 38px;
}

@media (max-height: 790px) and (min-width: 881px) {
    .sp-brand-message {
        padding-block: 26px;
    }

    .sp-clay-principles {
        margin-top: 22px;
    }

    .sp-principle-card {
        min-height: 112px;
    }

    .sp-auth-card.sp-register-card {
        padding-block: 27px;
    }

    .sp-auth-card.sp-register-card .sp-field {
        margin-bottom: 13px;
    }
}
