/* =========================================
   RESET
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* =========================================
   BODY / PAGE
========================================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #1f2466 0%, #383b92 100%);
    color: #1f2466;
    overflow: hidden;
}

/* =========================================
   LOGIN SHELL
========================================= */

.admin-auth-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

/* =========================================
   WRAPPER
========================================= */

.login-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

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

.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

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

.login-card__header {
    text-align: center;
    margin-bottom: 26px;
}

.login-card__header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2466;
}

.login-card__header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #383b92;
}

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

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7e0;
    border: 1px solid #f1ad09;
    color: #1f2466;
    font-size: 14px;
    line-height: 1.45;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 4px;
}

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

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #1f2466;
}

/* =========================================
   INPUTS
========================================= */

.form-row input[type="email"],
.form-row input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid #383b92;
    background: #ffffff;
    color: #1f2466;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input[type="email"]:focus,
.form-row input[type="password"]:focus {
    border-color: #1f2466;
    box-shadow: 0 0 0 3px rgba(56, 59, 146, 0.18);
}

/* =========================================
   REMEMBER CHECKBOX
========================================= */

.form-row--inline {
    display: flex;
    align-items: center;
    margin-top: 6px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #1f2466;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    flex: 0 0 18px;
    accent-color: #383b92;
}

.checkbox-label span {
    display: inline-block;
    line-height: 1;
}

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

.form-actions {
    margin-top: 22px;
}

.form-actions button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #f1ad09;
    color: #1f2466;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.form-actions button:hover {
    background: #d89a08;
}

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

.form-actions button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 173, 9, 0.28);
}

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

@media (max-width: 480px) {
    .admin-auth-shell {
        padding: 16px;
    }

    .login-wrap {
        max-width: 100%;
    }

    .login-card {
        border-radius: 14px;
        padding: 24px 20px;
    }

    .login-card__header {
        margin-bottom: 22px;
    }

    .login-card__header h1 {
        font-size: 24px;
    }

    .login-card__header p {
        font-size: 14px;
    }

    .form-row {
        margin-bottom: 15px;
    }

    .form-row input[type="email"],
    .form-row input[type="password"] {
        height: 46px;
        font-size: 16px;
    }

    .form-actions {
        margin-top: 20px;
    }

    .form-actions button {
        height: 46px;
        font-size: 15px;
    }
}

/* =========================================
   LARGE SCREENS
========================================= */

@media (min-width: 900px) {
    .login-card {
        padding: 40px 36px;
    }

    .login-card__header h1 {
        font-size: 30px;
    }
}