/* =========================================================
   CBT LOGIN
   MODERN / ELEGANT / RESPONSIVE
   ========================================================= */

.cbt-login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 35px 20px;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(96, 165, 250, .16),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(96, 165, 250, .13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef6ff 50%,
            #f8fbff 100%
        );
}


/* =========================================================
   BACKGROUND DECORATION
   ========================================================= */

.cbt-login-page::before,
.cbt-login-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cbt-login-page::before {
    width: 480px;
    height: 480px;
    top: -300px;
    left: -180px;
    border: 75px solid rgba(96, 165, 250, .07);
}

.cbt-login-page::after {
    width: 430px;
    height: 430px;
    right: -270px;
    bottom: -260px;
    border: 70px solid rgba(96, 165, 250, .07);
}


/* =========================================================
   CARD
   ========================================================= */

.cbt-login-card {
    width: min(100%, 650px);
    position: relative;
    z-index: 2;
    padding:
        42px
        clamp(24px, 5vw, 58px)
        40px;

    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 28px;
    box-shadow:
        0 25px 65px rgba(54, 93, 140, .12),
        0 8px 25px rgba(54, 93, 140, .06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}


/* =========================================================
   LOGO
   Logo sekarang SEPENUHNYA berada di dalam card
   ========================================================= */

.cbt-login-logo {
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 8px 25px rgba(58, 104, 155, .12),
        0 2px 8px rgba(58, 104, 155, .06);
    position: relative;
}

.cbt-login-logo::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(219, 234, 254, .45);
    z-index: -1;
}

.cbt-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}


/* =========================================================
   HEADER
   ========================================================= */

.cbt-login-header {
    text-align: center;
    margin-bottom: 34px;
}

.cbt-login-title {
    margin: 0;
    color: #172b4d;
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.6px;
}

.cbt-login-title span {
    color: #2f80ed;
}

.cbt-login-subtitle {
    margin: 8px 0 0;

    color: #8192ad;

    font-size: 13px;

    font-weight: 400;
}


/* Accent */

.cbt-login-header::after {
    content: "";

    display: block;

    width: 76px;
    height: 5px;

    margin: 17px auto 0;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #4facfe,
            #3b82f6
        );

    box-shadow:
        0 4px 10px rgba(59, 130, 246, .15);
}


/* =========================================================
   FORM
   ========================================================= */

.cbt-login-form {
    width: 100%;
}


/* =========================================================
   FIELD
   ========================================================= */

.cbt-login-field {
    width: 100%;

    position: relative;

    margin-bottom: 17px;
}


/* =========================================================
   INPUT
   ========================================================= */

.cbt-login-input {
    width: 100%;
    height: 58px;

    padding:
        0
        55px
        0
        58px;

    border: 1px solid #d8e3f1;

    border-radius: 30px;

    outline: none;

    background: #f7faff;

    color: #253858;

    font-family: inherit;

    font-size: 14px;
    font-weight: 500;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.cbt-login-input::placeholder {
    color: #91a2bc;

    font-weight: 400;
}

.cbt-login-input:hover {
    background: #f5f9ff;

    border-color: #cbd9eb;
}

.cbt-login-input:focus {
    background: #ffffff;

    border-color: #8abcf7;

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, .07),
        0 5px 15px rgba(59, 130, 246, .04);
}


/* =========================================================
   LEFT ICON
   ========================================================= */

.cbt-login-field-icon {
    position: absolute;

    left: 20px;
    top: 50%;

    transform: translateY(-50%);

    width: 24px;

    text-align: center;

    color: #7186a5;

    font-size: 17px;

    pointer-events: none;

    transition: color .2s ease;
}

.cbt-login-field:focus-within
.cbt-login-field-icon {
    color: #3b82f6;
}


/* =========================================================
   RIGHT ACTION
   ========================================================= */

.cbt-login-field-action {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #edf3fb;

    color: #a4b2c5;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.cbt-login-field-action:hover {
    background: #e3edf9;

    color: #6f85a4;
}

.cbt-login-field-action:focus {
    outline: none;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.cbt-login-button {
    width: 100%;
    height: 58px;

    margin-top: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 30px;

    background:
        linear-gradient(
            100deg,
            #55b3fa 0%,
            #3f8df4 48%,
            #365eea 100%
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(59, 130, 246, .20),
        0 4px 10px rgba(59, 130, 246, .08);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.cbt-login-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.02);

    box-shadow:
        0 14px 28px rgba(59, 130, 246, .24),
        0 6px 12px rgba(59, 130, 246, .10);
}

.cbt-login-button:active {
    transform: translateY(0);
}

.cbt-login-button:focus {
    outline: none;
}

.cbt-login-button-icon {
    font-size: 15px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.cbt-login-footer {
    margin-top: 38px;

    text-align: center;
}

.cbt-login-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    margin-bottom: 14px;

    color: #a3b0c2;

    font-size: 11px;
}

.cbt-login-footer-text::before,
.cbt-login-footer-text::after {
    content: "";

    width: 70px;
    height: 1px;

    background: #e0e7f0;
}

.cbt-login-register {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #2878ee;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.cbt-login-register:hover {
    color: #1d5fc4;

    text-decoration: none;

    transform: translateX(2px);
}

.cbt-login-register-arrow {
    font-size: 16px;

    transition: transform .2s ease;
}

.cbt-login-register:hover
.cbt-login-register-arrow {
    transform: translateX(3px);
}


/* =========================================================
   LAPTOP
   1280x720 / 1366x768
   ========================================================= */

@media (max-height: 800px) and (min-width: 768px) {

    .cbt-login-page {
        padding: 25px 20px;
    }

    .cbt-login-card {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .cbt-login-logo {
        width: 92px;
        height: 92px;

        margin-bottom: 19px;
    }

    .cbt-login-header {
        margin-bottom: 25px;
    }

    .cbt-login-title {
        font-size: 27px;
    }

    .cbt-login-header::after {
        margin-top: 12px;
        height: 4px;
    }

    .cbt-login-field {
        margin-bottom: 12px;
    }

    .cbt-login-input {
        height: 48px;
    }

    .cbt-login-button {
        height: 48px;

        margin-top: 9px;
    }

    .cbt-login-footer {
        margin-top: 25px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 767.98px) {

    .cbt-login-page {
        min-height: 100dvh;

        padding:
            25px
            15px;
    }

    .cbt-login-card {
        width: 100%;
        max-width: 480px;

        padding:
            30px
            24px
            32px;

        border-radius: 23px;
    }

    .cbt-login-logo {
        width: 100px;
        height: 100px;

        margin-bottom: 22px;
    }

    .cbt-login-title {
        font-size: 25px;
    }

    .cbt-login-header {
        margin-bottom: 27px;
    }

    .cbt-login-input {
        height: 52px;
    }

    .cbt-login-button {
        height: 52px;
    }

    .cbt-login-footer {
        margin-top: 30px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .cbt-login-page {
        padding:
            18px
            12px;
    }

    .cbt-login-card {
        padding:
            25px
            18px
            28px;

        border-radius: 20px;
    }

    .cbt-login-logo {
        width: 88px;
        height: 88px;

        padding: 0px;

        margin-bottom: 18px;
    }

    .cbt-login-logo::before {
        inset: -7px;
    }

    .cbt-login-title {
        font-size: 23px;
    }

    .cbt-login-subtitle {
        font-size: 11px;
    }

    .cbt-login-header {
        margin-bottom: 23px;
    }

    .cbt-login-header::after {
        width: 60px;
        height: 3px;

        margin-top: 12px;
    }

    .cbt-login-input {
        height: 50px;

        padding-left: 50px;
        padding-right: 48px;

        font-size: 13px;
    }

    .cbt-login-field-icon {
        left: 18px;

        font-size: 15px;
    }

    .cbt-login-field-action {
        right: 9px;

        width: 32px;
        height: 32px;
    }

    .cbt-login-button {
        height: 50px;

        font-size: 14px;
    }

    .cbt-login-footer {
        margin-top: 26px;
    }

    .cbt-login-footer-text {
        gap: 7px;

        font-size: 9px;
    }

    .cbt-login-footer-text::before,
    .cbt-login-footer-text::after {
        width: 30px;
    }

    .cbt-login-register {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE KECIL
   ========================================================= */

@media (max-width: 360px) {

    .cbt-login-page {
        padding:
            12px
            9px;
    }

    .cbt-login-card {
        padding:
            22px
            15px
            24px;

        border-radius: 18px;
    }

    .cbt-login-logo {
        width: 80px;
        height: 80px;

        margin-bottom: 16px;
    }

    .cbt-login-title {
        font-size: 21px;
    }

    .cbt-login-subtitle {
        font-size: 10px;
    }

    .cbt-login-input {
        height: 47px;

        padding-left: 46px;

        font-size: 12px;
    }

    .cbt-login-button {
        height: 47px;

        font-size: 13px;
    }

    .cbt-login-footer-text::before,
    .cbt-login-footer-text::after {
        display: none;
    }
}


/* =========================================================
   LOGIN NOTIFICATION
   Modern / Elegant / Soft
   ========================================================= */

.registrasi-notification,
.login-error-notif,
.login-success-notif {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: calc(100% - 20px);

    margin-left: 10px;
    margin-right: 10px;

    padding: 8px 16px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;

    text-align: center;

    box-shadow:
        0 3px 10px rgba(40, 70, 110, .06);

    animation: loginNotifShow .25s ease-out;
}


/* =========================================================
   REGISTRASI
   ========================================================= */

.registrasi-notification {
    color: #8a6d19;

    background: #fff9df;

    border: 1px solid #f5e7a9;
}


/* =========================================================
   ERROR
   ========================================================= */

.login-error-notif {
    color: #c2415b;

    background: #fff1f3;

    border: 1px solid #f7cbd3;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.login-success-notif {
    color: #168277;

    background: #ecfaf7;

    border: 1px solid #bfe9df;
}


/* =========================================================
   HOVER
   ========================================================= */

.registrasi-notification,
.login-error-notif,
.login-success-notif {
    transition:
        box-shadow .2s ease,
        transform .2s ease;
}

.registrasi-notification:hover,
.login-error-notif:hover,
.login-success-notif:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(40, 70, 110, .09);
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes loginNotifShow {

    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .registrasi-notification,
    .login-error-notif,
    .login-success-notif {
        max-width: calc(100% - 12px);

        margin-left: 6px;
        margin-right: 6px;

        padding: 7px 13px;

        border-radius: 7px;

        font-size: 10px;
    }

}