/* AlertIQ Auth v14.1
   Login dan registrasi satu layar desktop tanpa scroll.
*/

:root {
    --auth-screen-gap: 10px;
}

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

body.auth-one-screen,
body.auth-one-screen * {
    box-sizing: border-box;
}

body.auth-one-screen {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at 14% 12%, rgba(69, 145, 230, 0.17), transparent 34%),
        linear-gradient(145deg, #deedff 0%, #bfd8f3 100%) !important;
}

.auth-one-screen .auth-shell {
    width: 100% !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    padding: var(--auth-screen-gap) !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
}

.auth-one-screen .auth-layout {
    width: min(1200px, 100%) !important;
    max-width: 1200px !important;
    height: calc(100dvh - (var(--auth-screen-gap) * 2)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - (var(--auth-screen-gap) * 2)) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
    border-radius: clamp(20px, 2vw, 30px) !important;
    background: rgba(247, 250, 254, 0.97) !important;
    box-shadow: 0 24px 64px rgba(24, 61, 98, 0.22) !important;
}

.auth-one-screen .auth-showcase.auth-showcase-logo-only {
    position: relative !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: clamp(18px, 2.7vw, 36px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 50% 38%, rgba(74, 155, 255, 0.24), transparent 39%),
        linear-gradient(145deg, #154d8b 0%, #0c315c 52%, #071f39 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.auth-one-screen .auth-showcase.auth-showcase-logo-only::before {
    content: "";
    position: absolute;
    inset: 7%;
    border: 1px solid rgba(157, 205, 250, 0.12);
    border-radius: 38px;
    pointer-events: none;
}

.auth-one-screen .auth-showcase.auth-showcase-logo-only::after {
    content: "";
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 145, 235, 0.12), transparent 70%);
    pointer-events: none;
}

.auth-one-screen .auth-left-logo-wrap {
    position: relative;
    z-index: 2;
    width: min(72%, 450px);
    max-height: 72%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-one-screen .auth-left-logo {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: min(56dvh, 430px);
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.auth-one-screen .auth-card.auth-card-one-screen {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: clamp(20px, 3vw, 42px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 100% 6%, rgba(94, 140, 220, 0.08), transparent 26%),
        #f7f9fc !important;
}

.auth-one-screen .auth-card-one-screen .auth-form {
    width: 100% !important;
    margin: 0 !important;
    gap: 11px !important;
}

.auth-one-screen .auth-card-one-screen .auth-field {
    gap: 5px !important;
    margin: 0 !important;
}

.auth-one-screen .auth-card-one-screen .auth-field label {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

.auth-one-screen .auth-card-one-screen .auth-input {
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
}

.auth-one-screen .auth-card-one-screen .auth-input input {
    min-height: 44px !important;
    height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 13px !important;
}

.auth-one-screen .auth-card-one-screen .auth-toggle {
    width: 42px !important;
    height: 42px !important;
}

.auth-one-screen .auth-card-one-screen .auth-meta {
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
}

.auth-one-screen .auth-card-one-screen .auth-submit {
    min-height: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    font-size: 12px !important;
}

.auth-one-screen .auth-card-one-screen .auth-link {
    margin: 12px 0 0 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

.auth-one-screen .auth-card-one-screen .auth-note {
    margin: 12px 0 0 !important;
    padding: 9px 11px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
}

.auth-one-screen .auth-card-one-screen .auth-alert {
    margin: 0 0 10px !important;
    padding: 9px 11px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.auth-one-screen.auth-register .auth-card.auth-card-one-screen {
    padding-top: clamp(16px, 2vw, 28px) !important;
    padding-bottom: clamp(16px, 2vw, 28px) !important;
}

.auth-one-screen.auth-register .auth-card-one-screen .auth-form {
    gap: 7px !important;
}

.auth-one-screen.auth-register .auth-card-one-screen .auth-input,
.auth-one-screen.auth-register .auth-card-one-screen .auth-input input {
    min-height: 40px !important;
    height: 40px !important;
}

.auth-one-screen.auth-register .auth-card-one-screen .auth-toggle {
    width: 39px !important;
    height: 39px !important;
}

.auth-one-screen.auth-register .auth-card-one-screen .auth-checks {
    margin: 1px 0 !important;
    gap: 6px !important;
}

.auth-one-screen.auth-register .auth-card-one-screen .auth-check {
    min-height: 24px !important;
    padding: 5px 8px !important;
    font-size: 9px !important;
}

.auth-one-screen.auth-register .auth-card-one-screen .auth-submit {
    min-height: 43px !important;
    height: 43px !important;
}

.auth-one-screen.auth-register .auth-card-one-screen .auth-link,
.auth-one-screen.auth-register .auth-card-one-screen .auth-note {
    margin-top: 8px !important;
}

/* Desktop dengan tinggi browser rendah, seperti layar 1366 x 768. */
@media (min-width: 981px) and (max-height: 700px) {
    :root {
        --auth-screen-gap: 6px;
    }

    .auth-one-screen .auth-layout {
        width: min(1160px, 100%) !important;
        grid-template-columns: minmax(0, 1.02fr) minmax(370px, 0.98fr) !important;
        border-radius: 24px !important;
    }

    .auth-one-screen .auth-showcase.auth-showcase-logo-only {
        padding: 16px 24px !important;
    }

    .auth-one-screen .auth-left-logo-wrap {
        width: min(66%, 390px);
    }

    .auth-one-screen .auth-left-logo {
        max-width: 390px;
        max-height: 50dvh;
    }

    .auth-one-screen .auth-card.auth-card-one-screen {
        padding: 16px 30px !important;
    }

    .auth-one-screen .auth-card-one-screen .auth-form {
        gap: 8px !important;
    }

    .auth-one-screen .auth-card-one-screen .auth-input,
    .auth-one-screen .auth-card-one-screen .auth-input input {
        min-height: 40px !important;
        height: 40px !important;
    }

    .auth-one-screen .auth-card-one-screen .auth-submit {
        min-height: 42px !important;
        height: 42px !important;
    }

    .auth-one-screen .auth-card-one-screen .auth-link {
        margin-top: 8px !important;
    }

    .auth-one-screen .auth-card-one-screen .auth-note {
        margin-top: 8px !important;
        padding: 7px 9px !important;
    }

    .auth-one-screen.auth-register .auth-card.auth-card-one-screen {
        padding: 12px 28px !important;
    }

    .auth-one-screen.auth-register .auth-card-one-screen .auth-form {
        gap: 5px !important;
    }

    .auth-one-screen.auth-register .auth-card-one-screen .auth-field {
        gap: 3px !important;
    }

    .auth-one-screen.auth-register .auth-card-one-screen .auth-input,
    .auth-one-screen.auth-register .auth-card-one-screen .auth-input input {
        min-height: 35px !important;
        height: 35px !important;
    }

    .auth-one-screen.auth-register .auth-card-one-screen .auth-toggle {
        width: 34px !important;
        height: 34px !important;
    }

    .auth-one-screen.auth-register .auth-card-one-screen .auth-submit {
        min-height: 38px !important;
        height: 38px !important;
    }

    .auth-one-screen.auth-register .auth-card-one-screen .auth-note {
        font-size: 8px !important;
        line-height: 1.25 !important;
    }
}

/* Tablet dan ponsel tetap boleh scroll karena form harus nyaman disentuh. */
@media (max-width: 980px) {
    body.auth-one-screen {
        overflow-y: auto !important;
    }

    .auth-one-screen .auth-shell {
        height: auto !important;
        min-height: 100dvh !important;
        padding: 10px !important;
        overflow: visible !important;
        place-items: start center !important;
    }

    .auth-one-screen .auth-layout {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .auth-one-screen .auth-showcase.auth-showcase-logo-only {
        min-height: 220px !important;
        height: 220px !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .auth-one-screen .auth-left-logo-wrap {
        width: min(74%, 350px);
        max-height: 190px;
    }

    .auth-one-screen .auth-left-logo {
        max-height: 185px;
    }

    .auth-one-screen .auth-card.auth-card-one-screen {
        height: auto !important;
        min-height: 0 !important;
        padding: 28px 22px 34px !important;
        overflow: visible !important;
    }
}

@media (max-width: 560px) {
    .auth-one-screen .auth-shell {
        padding: 0 !important;
    }

    .auth-one-screen .auth-layout {
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .auth-one-screen .auth-showcase.auth-showcase-logo-only {
        min-height: 190px !important;
        height: 190px !important;
    }

    .auth-one-screen .auth-left-logo-wrap {
        width: min(78%, 310px);
    }

    .auth-one-screen .auth-left-logo {
        max-height: 160px;
    }

    .auth-one-screen .auth-card.auth-card-one-screen {
        padding: 25px 18px 32px !important;
    }
}
