/* ==== Shared look buat halaman Onboarding & Login (guest, sebelum masuk app) ==== */
/* Halaman ini sengaja berdiri sendiri (ga include style.css) biar desainnya
   ga kecampur sama style dashboard/app, jadi reset dasar ditaro di sini. */
* {
    box-sizing: border-box;
}

:root {
    --auth-accent: #6d5bf7;
    --auth-accent-dark: #5a46e8;
    --auth-accent-soft: #efecfe;
    --auth-text: #1f2430;
    --auth-muted: #8a8fa3;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(160deg, var(--auth-accent) 0%, var(--auth-accent-dark) 55%, #4433c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text);
}

.auth-shell {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 640px) {
    .auth-shell {
        min-height: 720px;
        margin: 28px 0;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 30px 70px rgba(20, 10, 60, 0.35);
    }
}

/* ===================== ONBOARDING ===================== */
.onb-skip {
    display: flex;
    justify-content: flex-end;
    padding: 18px 20px 0;
}
.onb-skip a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 10px;
}

.onb-viewport {
    flex: 1;
    overflow: hidden;
}

.onb-slides {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.onb-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 34px 0;
    text-align: center;
}

.onb-illustration {
    width: 100%;
    max-width: 260px;
    margin-bottom: 28px;
}

.onb-slide h2 {
    color: #fff;
    font-size: 21px;
    margin: 0 0 12px;
    line-height: 1.35;
}

.onb-slide p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

.onb-footer {
    padding: 22px 28px 34px;
}

.onb-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 22px;
}
.onb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.25s ease, background 0.25s ease;
}
.onb-dot.active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
}

.onb-next {
    width: 100%;
    border: none;
    background: #fff;
    color: var(--auth-accent-dark);
    font-size: 15px;
    font-weight: 700;
    padding: 15px;
    border-radius: 14px;
    cursor: pointer;
}
.onb-next:active {
    transform: scale(0.99);
}

/* ===================== LOGIN ===================== */
.auth-body-login .auth-shell {
    background: linear-gradient(160deg, var(--auth-accent) 0%, var(--auth-accent-dark) 55%, #4433c4 100%);
}

.auth-top {
    padding: 40px 32px 24px;
    text-align: center;
}
.auth-badge {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-badge svg {
    width: 32px;
    height: 32px;
}
.auth-top h1 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px;
}
.auth-top p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    margin: 0;
}

.auth-card {
    background: #fff;
    border-radius: 26px 26px 0 0;
    padding: 30px 28px 34px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-card form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 640px) {
    .auth-card {
        border-radius: 26px;
        margin: 0 14px 14px;
    }
}

.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--auth-muted);
}
.auth-input-wrap {
    position: relative;
}
.auth-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #e7e6f5;
    background: #faf9ff;
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--auth-text);
    font-family: inherit;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--auth-accent);
    background: #fff;
}
.auth-input-wrap input {
    padding-right: 42px;
}

.auth-toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.auth-toggle-pass:hover {
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
}
.auth-toggle-pass svg {
    width: 18px;
    height: 18px;
}

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--auth-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
}
.auth-submit:hover {
    background: var(--auth-accent-dark);
}
.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-alert {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.auth-check-status {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent-dark);
    border: 1px solid #ded8fb;
    text-align: center;
}

.auth-checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--auth-text);
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}
.auth-checkbox-line input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

.auth-card-foot {
    padding-top: 22px;
    text-align: center;
}
.auth-card-foot span {
    color: var(--auth-muted);
    font-size: 12.5px;
}