* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f5f7fb;
    color: #101828;
}

button,
input {
    font: inherit;
}


/*
|--------------------------------------------------------------------------
| Page
|--------------------------------------------------------------------------
*/

.admin-login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;
}


/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.admin-login-card {
    width: 100%;
    max-width: 450px;

    padding: 38px;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(16, 24, 40, 0.07);
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.admin-header {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 30px;
}

.admin-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f4f7;

    border-radius: 12px;
}

.admin-icon svg {
    width: 25px;
    height: 25px;

    stroke: #344054;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-header h1 {
    font-size: 24px;
    line-height: 1.25;

    font-weight: 700;

    color: #101828;

    margin-bottom: 4px;
}

.admin-header p {
    font-size: 14px;
    color: #667085;
}


/*
|--------------------------------------------------------------------------
| Alert
|--------------------------------------------------------------------------
*/

.alert {
    padding: 12px 14px;

    margin-bottom: 22px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.5;
}

.alert-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;

    color: #344054;
}

.form-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    outline: none;

    background: #ffffff;
    color: #101828;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #98a2b3;
}

.form-group input:focus {
    border-color: #344054;

    box-shadow:
        0 0 0 3px rgba(52, 64, 84, 0.08);
}

.form-group input.input-error {
    border-color: #d92d20;
}

.field-error {
    display: block;

    min-height: 18px;

    margin-top: 5px;

    font-size: 12px;

    color: #d92d20;
}


/*
|--------------------------------------------------------------------------
| Password
|--------------------------------------------------------------------------
*/

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: #475467;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.password-toggle:hover {
    color: #101828;
}


/*
|--------------------------------------------------------------------------
| Login Button
|--------------------------------------------------------------------------
*/

.login-button {
    position: relative;

    width: 100%;
    height: 50px;

    margin-top: 4px;

    border: 1px solid #111827;
    border-radius: 9px;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background: #1f2937;

    box-shadow:
        0 6px 16px rgba(16, 24, 40, 0.15);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/*
|--------------------------------------------------------------------------
| Loader
|--------------------------------------------------------------------------
*/

.button-loader {
    display: none;

    width: 16px;
    height: 16px;

    margin: auto;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

.login-button.loading .button-text {
    display: none;
}

.login-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/*
|--------------------------------------------------------------------------
| Security
|--------------------------------------------------------------------------
*/

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 26px;

    font-size: 12px;

    color: #98a2b3;
}

.security-icon {
    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d0d5dd;
    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;

    color: #667085;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    .admin-login-page {
        padding: 16px;
    }

    .admin-login-card {
        padding: 28px 22px;

        border-radius: 15px;
    }

    .admin-header {
        gap: 13px;

        margin-bottom: 26px;
    }

    .admin-icon {
        width: 46px;
        height: 46px;

        border-radius: 10px;
    }

    .admin-icon svg {
        width: 22px;
        height: 22px;
    }

    .admin-header h1 {
        font-size: 21px;
    }

    .admin-header p {
        font-size: 13px;
    }

    .form-group input {
        height: 47px;
    }

    .login-button {
        height: 48px;
    }

}