/* Subuh: the sign-in, registration and password pages. The sky follows the hour in Malaysia. */
.sb-auth {
    --sb-ink: #0F2A4A;
    --sb-blue: #14538C;
    --sb-muted: #3D5873;
    --sb-sun: #FFB020;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    box-sizing: border-box;
    padding: 24px clamp(16px, 6vw, 96px);
    background: #CFEBFB;
    color: var(--sb-ink);
    font: 400 16px/1.5 'Instrument Sans', system-ui, sans-serif;
}

body { margin: 0; }

.sb-auth a { color: var(--sb-blue); }
.sb-auth *, .sb-auth *::before, .sb-auth *::after { box-sizing: border-box; }

.sb-scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.sb-brand {
    position: absolute;
    left: clamp(16px, 4vw, 64px);
    top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sb-ink) !important;
    text-decoration: none;
    font: 800 26px 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -.02em;
}

.sb-greet {
    position: absolute;
    left: clamp(16px, 4vw, 64px);
    top: 84px;
    max-width: 620px;
    font: 800 clamp(44px, 6vw, 80px)/1 'Bricolage Grotesque', system-ui, sans-serif;
    letter-spacing: -.03em;
}

.sb-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-top: 180px;
    padding: 32px;
    background: #fff;
    border-radius: 24px;
}

@media (min-width: 1000px) {
    .sb-panel { margin-top: 0; }
}

.sb-panel.is-wide { max-width: 640px; }
.sb-terms { height: 380px; overflow-y: auto; padding: 16px 20px; border-radius: 16px; background: #EAF5FD; font-size: 15px; }
.sb-terms:focus { outline: 3px solid var(--sb-sun); }
.sb-terms h1, .sb-terms h2 { margin: 16px 0 6px; font: 800 20px/1.2 'Bricolage Grotesque', system-ui, sans-serif; color: var(--sb-blue); }
.sb-form .sb-terms h1 { margin-top: 0; font-size: 28px; }
.sb-terms p { margin: 0 0 10px; }

.sb-form { display: flex; flex-direction: column; gap: 16px; }
.sb-form h1 { margin: 0; font: 800 40px/1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.03em; }
.sb-form p { margin: 0; }

.sb-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.sb-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.sb-row a { font-weight: 400; }
.sb-hint { font-size: 13px; font-weight: 400; color: var(--sb-muted); }

.sb-input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1.5px solid #7E96AD;
    border-radius: 12px;
    background: #fff;
    color: var(--sb-ink);
    font: 400 16px 'Instrument Sans', system-ui, sans-serif;
}

.sb-input:focus { outline: 3px solid var(--sb-sun); outline-offset: 1px; border-color: var(--sb-blue); }

.sb-pass { position: relative; }
.sb-pass .sb-input { padding-right: 52px; }
.sb-eye {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-muted) !important;
    border: 0;
    background: none;
    border-radius: 10px;
    cursor: pointer;
}
.sb-eye .sb-eye-slash { display: none; }
.sb-eye.is-shown .sb-eye-slash { display: inline; }

.sb-check { display: flex; gap: 8px; align-items: center; min-height: 24px; font-size: 15px; }
.sb-check input { width: 18px; height: 18px; accent-color: var(--sb-blue); }

.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    width: 100%;
    padding: 8px 16px;
    border: 0;
    border-radius: 24px;
    background: var(--sb-blue);
    color: #fff !important;
    font: 600 16px 'Instrument Sans', system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.sb-btn:disabled { opacity: .6; cursor: default; }
.sb-btn:focus-visible { outline: 3px solid var(--sb-sun); outline-offset: 2px; }
.sb-btn.is-line { background: #fff; box-shadow: inset 0 0 0 1.5px #7E96AD; color: var(--sb-ink) !important; }
.sb-btn.is-line svg { flex: none; }
.sb-btn.is-line.is-line-app { background: #00B900; box-shadow: none; color: #fff !important; }

.sb-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

.sb-or { display: flex; align-items: center; gap: 12px; color: var(--sb-muted); font-size: 13px; }
.sb-or::before, .sb-or::after { content: ""; flex: 1; height: 1px; background: #CFE3F2; }

.sb-small { font-size: 13px; color: var(--sb-muted); }
.sb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.sb-lang { display: flex; align-items: center; margin-top: 12px; justify-content: center; }
.sb-lang .px-3 { padding: 0 8px; }

.sb-error { color: #B3261E; font-size: 15px; }
.sb-auth .alert { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 15px; }
.sb-auth .alert-danger { background: #FDECEA; color: #8C1D18; }
.sb-auth .alert-info, .sb-message:not(:empty) { background: #EAF5FD; color: var(--sb-ink); padding: 10px 14px; border-radius: 12px; font-size: 15px; }

.sb-wait { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; text-align: center; }
.sb-ripple { position: relative; width: 80px; height: 80px; }
.sb-ripple div {
    position: absolute;
    border: 4px solid var(--sb-blue);
    border-radius: 50%;
    animation: sb-ripple 1s cubic-bezier(0, .2, .8, 1) infinite;
}
.sb-ripple div:nth-child(2) { animation-delay: -.5s; }

@keyframes sb-ripple {
    0% { top: 36px; left: 36px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 72px; height: 72px; opacity: 0; }
}

.sb-shutter { transform-box: fill-box; transform-origin: top; }
.sb-open .sb-shutter { animation: sb-shutter 1.6s ease-in-out both; animation-delay: var(--at, .3s); }

@keyframes sb-shutter {
    from { transform: scaleY(1); }
    to { transform: scaleY(.1); }
}

@media (prefers-reduced-motion: reduce) {
    .sb-open .sb-shutter { animation: none; transform: scaleY(.1); }
}
