/* ============================================================
   eSkooly Pro — Login page (design system)
   Loaded after style.css on the edulia login view.
   Palette: primary #613ddf, navy #241665, muted #6b6b85,
   border #e8e8f0, danger #ff5a79
   ============================================================ */

:root {
    --esk-primary: #613ddf;
    --esk-primary-dark: #5232c8;
    --esk-navy: #241665;
    --esk-muted: #6b6b85;
    --esk-border: #e8e8f0;
    --esk-danger: #ff5a79;
}

section.login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 16px;
}

.login_wrapper {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid var(--esk-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 22, 101, 0.04), 0 12px 32px rgba(36, 22, 101, 0.12);
    padding: 40px 36px 32px;
}

.login_wrapper_logo img {
    max-width: 150px;
    height: auto;
}

.login_wrapper_logo {
    margin-bottom: 18px;
}

.login_wrapper_content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--esk-navy);
    text-align: center;
    margin: 0 0 4px;
}

.login_wrapper_content .login-subtitle {
    font-size: 13px;
    color: var(--esk-muted);
    text-align: center;
    margin: 0 0 24px;
}

/* ---------- inputs ---------- */
.login_wrapper .input-control {
    margin-bottom: 16px;
}

.login_wrapper .input-control-input {
    width: 100%;
    border: 1.5px solid var(--esk-border);
    border-radius: 10px;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    color: var(--esk-navy);
    background: #ffffff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login_wrapper .input-control-input::placeholder {
    color: var(--esk-muted);
    opacity: .75;
}

.login_wrapper .input-control-input:focus {
    border-color: var(--esk-primary);
    box-shadow: 0 0 0 3px rgba(97, 61, 223, 0.08);
    outline: none;
}

.login_wrapper .input-control-icon {
    left: 0;
    width: 44px; /* match the input's padding-left so the icon centers in the gutter */
    justify-content: center;
    font-size: 15px;
    color: var(--esk-muted);
    z-index: 2; /* legacy style.css sets z-index:-1, hiding the icon behind the input */
    pointer-events: none;
}

.login_wrapper .input-control:focus-within .input-control-icon {
    color: var(--esk-primary);
}

.login_wrapper .text-danger {
    display: block;
    font-size: 12px;
    color: var(--esk-danger);
    margin: -8px 0 12px 4px;
}

/* ---------- remember / forgot row ---------- */
.login_wrapper .row_gap_24 {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login_wrapper .checkbox-title {
    font-size: 13px;
    color: var(--esk-muted);
}

.login_wrapper .checkbox .checkbox-input:checked ~ .checkbox-title::before,
.login_wrapper .checkbox input:checked + span::before {
    border-color: var(--esk-primary);
}

.login_wrapper a#forget {
    font-size: 13px;
    color: var(--esk-primary);
    text-decoration: none;
}

.login_wrapper a#forget:hover {
    color: var(--esk-primary-dark);
    text-decoration: underline;
}

/* ---------- submit ---------- */
.login_wrapper input[type="submit"].input-control-input {
    background: var(--esk-primary);
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login_wrapper input[type="submit"].input-control-input:hover {
    background: var(--esk-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(97, 61, 223, 0.2);
}

/* ---------- demo role buttons (app_sync only) ---------- */
.grid__button__layout input[type="submit"].input-control-input,
.row-gap-10 input[type="submit"].input-control-input {
    background: #f3f1fc;
    color: var(--esk-navy);
    border: 1px solid var(--esk-border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
}

.grid__button__layout input[type="submit"].input-control-input:hover,
.row-gap-10 input[type="submit"].input-control-input:hover {
    background: var(--esk-primary);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

/* ---------- toastr on palette ---------- */
#toast-container > .toast-success {
    background-color: #1da98e;
}

#toast-container > .toast-error {
    background-color: #ff5a79;
}

@media (max-width: 480px) {
    .login_wrapper {
        padding: 28px 20px;
    }
}
