@import url(
    'https://fonts.googleapis.com/css2?family=Noto+Sans+Khmer:wght@400;500;600;700&display=swap'
);


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    font-family:
        "Noto Sans Khmer",
        sans-serif;

    background: #f4f6f8;
    color: #1f2937;
}


/* =========================================================
   LOGIN CONTAINER
========================================================= */

.login-container {
    min-height: 100vh;

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

    padding: 20px;
}


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

.login-card {
    width: 100%;
    max-width: 380px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.07);
}


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

.login-header {
    text-align: center;
    margin-bottom: 28px;
}


/* Logo */

.school-logo {
    width: 54px;
    height: 54px;

    margin: 0 auto 16px;

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

    border-radius: 12px;

    background: #2563eb;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;

    box-shadow:
        0 4px 10px
        rgba(37, 99, 235, 0.20);
}


/* Title */

.login-header h1 {
    margin-bottom: 4px;

    color: #111827;

    font-family:
        "Noto Sans Khmer",
        sans-serif;
    font-size: 25px;
    font-weight: 700;

    line-height: 1.25;
}


/* Subtitle */

.login-header p {
    color: #64748b;

    font-family:
        "Noto Sans Khmer",
        Arial,
        sans-serif;

    font-size: 14px;
}


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

.login-form {
    width: 100%;
}


/* Form group */

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


/* Labels */

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}


/* Inputs */

.form-group input {
    width: 100%;
    height: 44px;

    padding: 0 12px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #f8fafc;
    color: #1f2937;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:hover {
    background: #f1f5f9;
}


.form-group input:focus {
    background: #ffffff;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.10);
}


/* Placeholder */

.form-group input::placeholder {
    color: #94a3b8;
}


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

.password-wrapper {
    position: relative;
}


.password-wrapper input {
    padding-right: 65px;
}


.toggle-password {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    padding: 5px 7px;

    border: none;

    background: transparent;

    color: #2563eb;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}


.toggle-password:hover {
    color: #1d4ed8;
}


/* =========================================================
   ERROR
========================================================= */

.login-error {
    min-height: 20px;

    margin-bottom: 10px;

    color: #dc2626;

    font-size: 13px;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;
    height: 44px;

    border: none;
    border-radius: 8px;

    background: #2563eb;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}


.login-button:hover {
    background: #1d4ed8;

    box-shadow:
        0 3px 8px
        rgba(37, 99, 235, 0.20);
}


.login-button:active {
    transform: translateY(1px);
}


.login-button:disabled {
    background: #93c5fd;

    cursor: not-allowed;

    box-shadow: none;
}


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

.login-footer {
    margin-top: 24px;

    padding-top: 16px;

    border-top: 1px solid #f1f5f9;

    text-align: center;

    color: #94a3b8;

    font-family:
        "Noto Sans Khmer",
        Arial,
        sans-serif;

    font-size: 12px;
}


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

@media (max-width: 500px) {

    .login-container {
        padding: 16px;
    }


    .login-card {
        max-width: 100%;

        padding: 28px 22px;

        border-radius: 12px;
    }


    .login-header {
        margin-bottom: 24px;
    }


    .school-logo {
        width: 50px;
        height: 50px;

        margin-bottom: 14px;

        font-size: 22px;
    }


    .login-header h1 {
        font-size: 23px;
    }
}