/* ---------- Login page ---------- */
/* Kill template white gaps around the login card */
.shop-account.login-account.content-inner,
.shop-account.login-account.section-full {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #eef2fd;
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -120px;
    background: rgba(31, 78, 216, .08);
}

.login-page::after {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -100px;
    background: rgba(31, 78, 216, .06);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(20, 34, 66, .14);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
}

/* Brand / decorative side */
.login-brand {
    background: #1f4ed8;
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    top: -70px;
    left: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.login-brand-top {
    position: relative;
    z-index: 1;
}

.login-brand h1 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.4;
    color: #fff;
}

.login-brand p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .78);
    font-weight: 400;
}

.login-brand-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-brand-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 10px 14px;
}

.login-brand-points li i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    text-align: center;
}

/* Form side */
.login-form-side {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-head {
    margin-bottom: 20px;
}

.login-form-head .login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1f4ed8;
    background: rgba(31, 78, 216, .1);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 12px;
}

.login-form-head .login-kicker:last-child {
    margin-bottom: 0;
}


.login-form-head h2 {
    font-size: 22px;
    font-weight: 800;
    color: #16255c;
    margin: 0 0 6px;
    line-height: 1.4;
}

.login-form-head p {
    margin: 0;
    font-size: 13px;
    color: #7b879c;
    line-height: 1.8;
}

#login .form-group {
    margin-bottom: 18px;
    position: relative;
}

#login .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #34405a;
    margin-bottom: 8px;
}

#login .form-group .field-wrap {
    position: relative;
}

#login .form-group .field-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #93a0b8;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

#login .form-control {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e4e9f4;
    background: #f7f9fd;
    border-radius: 14px;
    padding: 0 46px 0 16px;
    font-size: 14.5px;
    color: #1f2d3d;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    direction: rtl;
}

#login .form-control::placeholder {
    color: #a0abc0;
    font-size: 13.5px;
}

#login .form-control:focus {
    background: #fff;
    border-color: #1f4ed8;
    box-shadow: 0 0 0 4px rgba(31, 78, 216, .12);
    outline: none;
}

#login .form-control.is-invalid {
    border-color: #ff4f70;
    background: #fff7f9;
}

#login .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(255, 79, 112, .12);
}

#login .help-block,
#login .invalid-feedback {
    display: block;
    font-size: 12.5px;
    color: #e11d48;
    margin-top: 7px;
    font-weight: 600;
}

#login .form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
    font-size: 13px;
    color: #66708a;
}

#login .form-check label {
    margin: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #66708a;
}

#login .form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1f4ed8;
    cursor: pointer;
}

.login-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: #1f4ed8;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(31, 78, 216, .28);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
    padding: 0 20px;
    text-decoration: none;
    text-transform: none;
}

.login-submit-btn:hover,
.login-submit-btn:focus {
    transform: translateY(-2px);
    background: #1a3fa8;
    box-shadow: 0 16px 34px rgba(31, 78, 216, .34);
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

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

.login-submit-btn i {
    font-size: 18px;
}

.login-hint {
    margin-top: 18px;
    text-align: center;
    font-size: 12.5px;
    color: #8b96ab;
    line-height: 1.8;
}

.login-hint a {
    color: #1f4ed8;
    font-weight: 700;
}

/* Alerts inside login */
.login-page .alert {
    border: none;
    border-radius: 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(20, 34, 66, .06);
}

/* ---------- Responsive ---------- */
/* Remove page-content bottom padding on login */
.page-content:has(> .shop-account.login-account) {
    padding-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 16px;
    }

    .login-brand {
        min-height: auto;
        padding: 28px 24px 24px;
    }

    .login-brand-points {
        display: none;
    }

    .login-form-side {
        padding: 28px 24px 32px;
    }
}

@media (max-width: 575.98px) {
    .login-page {
        min-height: auto;
    }

    .login-shell {
        border-radius: 18px;
        margin: 12px;
    }

    .login-brand {
        padding: 22px 18px;
        text-align: center;
        align-items: center;
    }

    .login-brand h1 {
        font-size: 18px;
    }

    .login-brand p {
        font-size: 12.5px;
    }

    .login-form-side {
        padding: 22px 18px 26px;
    }

    .login-form-head h2 {
        font-size: 19px;
    }

    .login-submit-btn {
        height: 48px;
        font-size: 14px;
    }
}

/* When page title h2 from old layout is present, keep it subtle */
.shop-account.login-account > .container > .row:first-child h2 {
    display: none;
}

/* ---------- Link between the two login pages ---------- */
.login-switch {
    margin-top: 10px;
    font-size: 12.5px;
    color: #8b96ab;
}

.login-switch a {
    color: #1f4ed8;
    font-weight: 700;
}

/* ---------- Teachers / managers login ---------- */
/* Same theme as the students page: identical markup, no per-panel overrides */

