@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   BODY
========================= */

body {
    font-family: 'Poppins', sans-serif;

    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        135deg,
        #075985 0%,
        #0284c7 50%,
        #38bdf8 100%
    );

    position: relative;

    overflow: hidden;
}


/* =========================
   BACKGROUND DECORATION
========================= */

body::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    top: -210px;
    left: -170px;

    pointer-events: none;
}

body::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    right: -190px;
    bottom: -230px;

    pointer-events: none;
}


/* =========================
   LOGIN CONTAINER
========================= */

.login-container {
    width: 100%;

    padding: 25px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    z-index: 2;
}


/* =========================
   LOGIN BOX
========================= */

.login-box {
    width: 370px;

    padding: 28px 32px 22px;

    background: rgba(255, 255, 255, 0.98);

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.20);

    animation: fadeIn 0.5s ease;
}


/* =========================
   LOGO
========================= */

.logo-wrapper {
    width: 65px;
    height: 65px;

    margin: 0 auto 11px;

    padding: 4px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #ffffff;

    border-radius: 50%;

    box-shadow:
        0 5px 15px rgba(2, 132, 199, 0.20);
}

.logo-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 50%;
}


/* =========================
   JUDUL
========================= */

.login-box h1 {
    color: #075985;

    font-size: 23px;
    font-weight: 700;

    line-height: 1.3;

    margin-bottom: 5px;
}

.subtitle {
    color: #64748b;

    font-size: 10.5px;

    line-height: 1.5;

    margin-bottom: 2px;
}

.dojo-name {
    color: #0284c7;

    font-size: 10.5px;

    font-weight: 600;

    margin-bottom: 19px;
}


/* =========================
   FORM GROUP
========================= */

.form-group {
    text-align: left;

    margin-bottom: 12px;
}

.form-group label {
    display: block;

    color: #334155;

    font-size: 11.5px;

    font-weight: 600;

    margin-bottom: 5px;
}


/* =========================
   INPUT WRAPPER
========================= */

.input-wrapper {
    width: 100%;

    position: relative;
}

.input-icon {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 13px;

    z-index: 2;
}


/* =========================
   INPUT & SELECT
========================= */

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: 40px;

    padding: 0 38px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: #f8fafc;

    color: #334155;

    font-family: 'Poppins', sans-serif;

    font-size: 11.5px;

    outline: none;

    transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper select {
    cursor: pointer;
}


/* =========================
   INPUT FOCUS
========================= */

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #0284c7;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(2, 132, 199, 0.10);
}


/* =========================
   PASSWORD BUTTON
========================= */

.show-password {
    position: absolute;

    right: 9px;
    top: 50%;

    transform: translateY(-50%);

    padding: 2px;

    border: none;

    background: transparent;

    font-size: 13px;

    cursor: pointer;

    opacity: 0.55;

    transition: 0.2s;
}

.show-password:hover {
    opacity: 1;
}


/* =========================
   LOGIN BUTTON
========================= */

.btn-login {
    width: 100%;
    height: 41px;

    margin-top: 3px;

    border: none;

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        #075985,
        #0284c7
    );

    color: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;

    font-weight: 600;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    cursor: pointer;

    transition: all 0.25s ease;
}

.btn-login span {
    font-size: 16px;

    transition: transform 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(2, 132, 199, 0.25);
}

.btn-login:hover span {
    transform: translateX(3px);
}

.btn-login:active {
    transform: translateY(0);
}


/* =========================
   INFORMASI AKUN
========================= */

.register-info {
    margin-top: 13px;

    text-align: center;

    font-size: 9.5px;

    line-height: 1.5;
}

.register-info p {
    display: inline;

    color: #64748b;
}

.register-info span {
    display: inline;

    color: #0284c7;

    font-weight: 600;
}


/* =========================
   FOOTER
========================= */

.login-footer {
    margin-top: 16px;

    padding-top: 11px;

    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #94a3b8;

    font-size: 8.5px;
}


/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(8px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 500px) {

    body {
        overflow-y: auto;
    }

    .login-container {
        padding: 20px 15px;
    }

    .login-box {
        width: 100%;
        max-width: 350px;

        padding: 25px 24px 20px;
    }

    .logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .login-box h1 {
        font-size: 21px;
    }

    .subtitle,
    .dojo-name {
        font-size: 10px;
    }

    .register-info {
        font-size: 9px;
    }
}