/* ========================================
   AUTH PORTAL
======================================== */

* {
    box-sizing: border-box;
}


body {
    margin: 0;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f7fb;

    color: #172033;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px 16px;
}


.auth-portal-wrapper {
    width: 100%;
    max-width: 390px;

    text-align: center;
}


/* ========================================
   LOGO
======================================== */

.auth-logo {
    width: 70px;
    height: 70px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, .07);
}


.auth-logo img {
    width: 52px;
    height: 52px;

    object-fit: contain;
}


/* ========================================
   ROLE ICON
======================================== */

.auth-role-icon {
    width: 44px;
    height: 44px;

    margin: 0 auto 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 19px;
}


/* ADMIN */

.role-admin .auth-role-icon {
    background: #eef4ff;
    color: #315b9e;
}


/* GURU */

.role-guru .auth-role-icon {
    background: #f0fdf4;
    color: #16a34a;
}


/* SISWA */

.role-siswa .auth-role-icon {
      background: #f1f5f9;
    color: #111827;
}


/* ========================================
   BADGE
======================================== */

.auth-badge {
    display: inline-flex;

    padding: 5px 10px;

    margin-bottom: 8px;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .8px;
}


.role-admin .auth-badge {
    background: #eef4ff;
    color: #315b9e;
}


.role-guru .auth-badge {
    background: #f0fdf4;
    color: #15803d;
}


.role-siswa .auth-badge {
     background: #f1f5f9;
    color: #111827;
}


/* ========================================
   HEADER
======================================== */

.auth-header {
    margin-bottom: 20px;
}


.auth-header h1 {
    margin: 0;

    font-size: 24px;
    font-weight: 800;

    color: #172033;
}


.auth-header p {
    max-width: 310px;

    margin: 7px auto 0;

    font-size: 11px;

    line-height: 1.55;

    color: #8a97aa;
}


/* ========================================
   LOGIN CARD
======================================== */

.auth-card {
    padding: 20px 18px;

    background: #ffffff;

    border: 1px solid #e5ebf3;

    border-radius: 20px;

    text-align: left;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, .05);
}


/* ========================================
   MESSAGE
======================================== */

.auth-message {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    padding: 10px 11px;

    margin-bottom: 15px;

    border-radius: 10px;

    font-size: 10px;

    line-height: 1.4;
}


.auth-message i {
    flex: 0 0 auto;

    font-size: 13px;

    margin-top: 1px;
}


.auth-message.error {
    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #be123c;
}


.auth-message.success {
    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #15803d;
}


/* ========================================
   FORM
======================================== */

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


.auth-form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 700;

    color: #334155;
}


.auth-input {
    position: relative;
}


.auth-input > i {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 15px;

    pointer-events: none;
}


.auth-input input {
    width: 100%;

    height: 44px;

    padding:
        0 42px
        0 38px;

    border: 1px solid #dfe6ef;

    border-radius: 12px;

    background: #f8fafc;

    outline: none;

    font-size: 11px;

    color: #172033;

    transition: .2s ease;
}


.auth-input input::placeholder {
    color: #a4afbd;
}


.auth-input input:focus {
    background: #ffffff;

    border-color: #94a3b8;

    box-shadow:
        0 0 0 3px
        rgba(148, 163, 184, .10);
}


/* ========================================
   PASSWORD TOGGLE
======================================== */

.auth-password-toggle {
    position: absolute;

    right: 9px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;

    border-radius: 8px;
}


.auth-password-toggle:hover {
    background: #f1f5f9;

    color: #64748b;
}


/* ========================================
   FORGOT PASSWORD
======================================== */

.auth-forgot {
    text-align: right;

    margin-top: -4px;

    margin-bottom: 16px;
}


.auth-forgot a {
    font-size: 10px;

    font-weight: 600;

    color: #64748b;

    text-decoration: none;
}


.auth-forgot a:hover {
    text-decoration: underline;
}


/* ========================================
   SUBMIT
======================================== */

.auth-submit {
    width: 100%;

    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;

    border-radius: 12px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


/* ADMIN */

.role-admin .auth-submit {
    background: #315b9e;

    box-shadow:
        0 7px 18px
        rgba(49, 91, 158, .18);
}


/* GURU */

.role-guru .auth-submit {
    background: #15803d;

    box-shadow:
        0 7px 18px
        rgba(21, 128, 61, .16);
}


/* SISWA */

.role-siswa .auth-submit {
    background: #111827;

    box-shadow:
        0 7px 18px
        rgba(17, 24, 39, .16);
}


.auth-submit:hover {
    transform: translateY(-1px);
}


.auth-submit:active {
    transform: translateY(0);
}


/* ========================================
   BACK
======================================== */

.auth-back {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 20px;

    font-size: 10px;

    font-weight: 600;

    color: #7b8798;

    text-decoration: none;

    transition: .2s ease;
}


.auth-back:hover {
    color: #334155;
}


.auth-back i {
    font-size: 12px;
}


/* ========================================
   FOOTER
======================================== */

.auth-footer {
    margin-top: 18px;

    font-size: 9px;

    color: #a0aaba;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 430px) {

    body {
        padding:
            20px 14px;
    }

    .auth-portal-wrapper {
        max-width: 100%;
    }

    .auth-logo {
        width: 64px;
        height: 64px;

        margin-bottom: 13px;
    }

    .auth-logo img {
        width: 48px;
        height: 48px;
    }

    .auth-role-icon {
        width: 42px;
        height: 42px;

        font-size: 18px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .auth-card {
        padding:
            18px 15px;

        border-radius: 18px;
    }

}