
:root {
    --auth-bg: #e6ebf2;
    --auth-card: rgba(226, 232, 240, 0.42);
    --auth-text: #303a5f;
    --auth-muted: #7d88aa;
    --auth-shadow-dark: rgba(120, 135, 160, 0.35);
    --auth-shadow-light: rgba(255, 255, 255, 0.92);
    --auth-accent: #2f6df6;
}

* {
    box-sizing: border-box;
}

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

body.auth-neumorphism-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--auth-text);
    background-color: var(--auth-bg);
    background-image:
        linear-gradient(115deg, rgba(226, 232, 240, 0.32), rgba(203, 213, 225, 0.24)),
        url("/assets/auth/it_transformation.png"),
        radial-gradient(circle at 18% 12%, rgba(255,255,255,0.95) 0, rgba(255,255,255,0.35) 24%, transparent 46%),
        radial-gradient(circle at 82% 28%, rgba(141, 157, 190, 0.26) 0, transparent 38%),
        linear-gradient(135deg, #eef3f8 0%, #dbe3ee 100%);
    background-size: cover, cover, cover, cover, cover;
    background-position: center, center, center, center, center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    overflow-x: hidden;
}

.auth-page-shell {
    width: 100%;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 42px 40px 36px;
    border-radius: 28px;
    background: rgba(226, 232, 240, 0.10);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    box-shadow:
        24px 24px 52px rgba(80, 95, 120, 0.26),
        -18px -18px 42px rgba(255, 255, 255, 0.38),
        inset 1px 1px 2px rgba(255,255,255,0.48);
    border: 1px solid rgba(255,255,255,0.50);
}

.auth-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #687497;
    background: linear-gradient(145deg, #edf2f8, #d2dae7);
    box-shadow:
        10px 10px 22px rgba(128, 143, 168, 0.36),
        -10px -10px 22px rgba(255,255,255,0.92);
}

.auth-avatar svg {
    width: 34px;
    height: 34px;
}

.auth-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #303a5f;
}

.auth-subtitle {
    margin: 12px 0 34px;
    text-align: center;
    color: var(--auth-muted);
    font-size: 15px;
    font-weight: 500;
}

.auth-status {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #166534;
    background: rgba(220, 252, 231, 0.86);
    box-shadow:
        inset 4px 4px 9px rgba(130, 150, 170, 0.15),
        inset -4px -4px 9px rgba(255,255,255,0.75);
    font-size: 14px;
}

.auth-error-box {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #991b1b;
    background: rgba(254, 226, 226, 0.9);
    box-shadow:
        inset 4px 4px 9px rgba(130, 150, 170, 0.15),
        inset -4px -4px 9px rgba(255,255,255,0.75);
    font-size: 14px;
}

.auth-error-box ul {
    margin: 0;
    padding-left: 18px;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-input-wrap {
    position: relative;
    width: 100%;
}

.auth-input-icon-left,
.auth-input-icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #8792b5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.auth-input-icon-left {
    left: 18px;
}

.auth-input-icon-right {
    right: 14px;
}

.auth-input-icon-left svg,
.auth-input-icon-right svg {
    width: 18px;
    height: 18px;
}

.auth-input {
    width: 100%;
    height: 58px;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 0 54px;
    color: #263456;
    background: rgba(240, 245, 252, 0.54);
    box-shadow:
        inset 7px 7px 15px rgba(88, 104, 130, 0.22),
        inset -7px -7px 15px rgba(255,255,255,0.58);
    font-size: 15px;
    font-weight: 700;
    transition: box-shadow .18s ease, background .18s ease;
}

.auth-input::placeholder {
    color: #8a95b8;
    font-weight: 600;
}

.auth-input:focus {
    background: rgba(232, 238, 246, 0.92);
    box-shadow:
        inset 5px 5px 12px rgba(128, 143, 168, 0.24),
        inset -5px -5px 12px rgba(255,255,255,0.88),
        0 0 0 3px rgba(47, 109, 246, 0.10);
}

.auth-password-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    color: #8792b5;
    background: rgba(226, 232, 240, 0.78);
    cursor: pointer;
    box-shadow:
        4px 4px 10px rgba(128, 143, 168, 0.26),
        -4px -4px 10px rgba(255,255,255,0.82);
}

.auth-password-toggle:hover {
    color: var(--auth-accent);
}

.auth-password-toggle:focus {
    outline: none;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 26px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #637092;
    font-size: 14px;
    font-weight: 700;
    user-select: none;
}

.auth-remember input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(226, 232, 240, 0.74);
    box-shadow:
        inset 4px 4px 8px rgba(128, 143, 168, 0.25),
        inset -4px -4px 8px rgba(255,255,255,0.86);
    position: relative;
    cursor: pointer;
}

.auth-remember input:checked::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 6px;
    border-left: 3px solid var(--auth-accent);
    border-bottom: 3px solid var(--auth-accent);
    transform: rotate(-45deg);
    left: 5px;
    top: 6px;
}

.auth-link {
    color: #5d6b91;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.auth-link:hover {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-submit {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 16px;
    color: #263456;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: rgba(238, 244, 252, 0.58);
    cursor: pointer;
    box-shadow:
        10px 10px 22px rgba(80, 95, 120, 0.25),
        -10px -10px 22px rgba(255,255,255,0.42);
    transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}

.auth-submit:hover {
    color: var(--auth-accent);
    transform: translateY(-1px);
    box-shadow:
        12px 12px 26px rgba(128, 143, 168, 0.38),
        -12px -12px 26px rgba(255,255,255,0.9);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow:
        inset 7px 7px 14px rgba(128, 143, 168, 0.26),
        inset -7px -7px 14px rgba(255,255,255,0.82);
}

.auth-footer-text {
    margin-top: 26px;
    text-align: center;
    font-size: 13px;
    color: #8a95b8;
    font-weight: 600;
}

.auth-footer-text strong {
    color: #5d6b91;
}

@media (max-width: 480px) {
    body.auth-neumorphism-body {
        padding: 18px 12px;
    }

    .auth-card {
        max-width: 100%;
        padding: 34px 24px 30px;
        border-radius: 24px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* === FINAL GLASS LOGIN OVERRIDE === */

/* Background tetap terlihat, tapi tidak terlalu tajam di belakang form */
body.auth-neumorphism-body {
    background-color: #d7e1ec !important;
    background-image:
        linear-gradient(115deg, rgba(215, 225, 236, 0.18), rgba(110, 130, 155, 0.12)),
        url("/assets/auth/it_transformation.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Card dibuat semi transparan: tidak putih polos, tapi tetap nyaman dibaca */
.auth-card {
    background: rgba(226, 232, 240, 0.15) !important;
    backdrop-filter: blur(11px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(11px) saturate(125%) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        22px 22px 48px rgba(35, 48, 70, 0.24),
        -14px -14px 34px rgba(255, 255, 255, 0.35),
        inset 1px 1px 2px rgba(255,255,255,0.36) !important;
}

/* Avatar */
.auth-avatar {
    background: rgba(238, 244, 252, 0.56) !important;
    box-shadow:
        8px 8px 20px rgba(55, 70, 95, 0.22),
        -8px -8px 20px rgba(255,255,255,0.40) !important;
}

/* Input lebih solid agar teks mudah terbaca */
.auth-input {
    background: rgba(245, 249, 255, 0.62) !important;
    color: #1f2d50 !important;
    box-shadow:
        inset 6px 6px 14px rgba(50, 65, 90, 0.17),
        inset -6px -6px 14px rgba(255,255,255,0.46) !important;
}

.auth-input::placeholder {
    color: rgba(45, 58, 95, 0.62) !important;
}

/* Tombol mata */
.auth-password-toggle {
    background: rgba(245, 249, 255, 0.58) !important;
    box-shadow:
        4px 4px 10px rgba(50, 65, 90, 0.18),
        -4px -4px 10px rgba(255,255,255,0.38) !important;
}

/* Checkbox */
.auth-remember input {
    background: rgba(245, 249, 255, 0.58) !important;
    box-shadow:
        inset 4px 4px 8px rgba(50, 65, 90, 0.16),
        inset -4px -4px 8px rgba(255,255,255,0.42) !important;
}

/* Tombol login */
.auth-submit {
    background: rgba(245, 249, 255, 0.64) !important;
    color: #1f2d50 !important;
    box-shadow:
        10px 10px 22px rgba(50, 65, 90, 0.22),
        -10px -10px 22px rgba(255,255,255,0.38) !important;
}

.auth-submit:hover {
    background: rgba(245, 249, 255, 0.76) !important;
}

/* Teks */
.auth-title,
.auth-submit,
.auth-footer-text strong {
    color: #1f2d50 !important;
}

.auth-subtitle,
.auth-remember,
.auth-link,
.auth-footer-text {
    color: rgba(31, 45, 80, 0.76) !important;
}

/* === END FINAL GLASS LOGIN OVERRIDE === */

