/* Standalone login screen: no global navigation competing with the form. */
body.liquid-body.login-simple-page {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 8% 8%, rgba(209, 188, 255, .46), transparent 25rem),
        radial-gradient(circle at 95% 96%, rgba(218, 255, 72, .28), transparent 24rem),
        #f8f7fd !important;
}

body.liquid-body.login-simple-page .liquid-background,
body.liquid-body.login-simple-page .app-topbar,
body.liquid-body.login-simple-page .subpage-toolbar { display: none !important; }

body.liquid-body.login-simple-page .app-shell {
    width: 100% !important;
    min-height: 100dvh;
    padding: 0 !important;
}

body.liquid-body.login-simple-page .app-main {
    display: grid !important;
    min-height: 100dvh !important;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)) !important;
}

.login-simple-shell {
    display: grid;
    width: min(100%, 420px);
    gap: 13px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 8px;
    color: #25105c;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.login-brand img {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(51, 19, 115, .15);
}

.login-simple-card {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 6vw, 32px) clamp(20px, 6vw, 30px) 22px;
    border: 1px solid rgba(101, 61, 185, .14);
    border-radius: 24px;
    color: #21104f;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(48, 24, 109, .13);
    text-align: center;
    animation: login-simple-rise .42s cubic-bezier(.2, .8, .25, 1) both;
}

.login-simple-header { margin-bottom: 19px; }
.login-simple-header h1 {
    margin: 0 0 5px;
    color: #221053;
    font-size: clamp(1.55rem, 6vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -.055em;
}
.login-simple-header p { margin: 0; color: #79738f; font-size: .76rem; line-height: 1.65; }

.login-simple-form { display: grid; gap: 13px; text-align: right; }
.login-field { display: grid; gap: 6px; }
.login-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #2b1765; font-size: .76rem; font-weight: 800; }
.login-simple-input {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 13px;
    border: 1px solid #e6e1ef;
    border-radius: 14px;
    color: #7533e7;
    background: #fcfbff;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.login-simple-input:focus-within { border-color: #e4e0ee; background: #fff; box-shadow: none; }
.login-simple-input > i { width: 24px; flex: 0 0 24px; font-size: 15px; }
.login-simple-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0;
    color: #25105c;
    background: transparent;
    /* iOS only suppresses automatic zoom when text is at least 16px. */
    font: 600 16px/1.4 "Alexandria", sans-serif;
}
.login-simple-input input::placeholder { color: #aaa3bb; font-weight: 500; opacity: 1; }
.login-password-toggle {
    display: grid;
    width: 34px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    color: #7533e7;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}
.login-password-toggle:focus-visible { outline: 2px solid #7533e7; outline-offset: 1px; }
.login-field-error { display: none; align-items: center; gap: 6px; margin: -1px 2px 0; color: #bd3451; font-size: .71rem; font-weight: 700; line-height: 1.55; }
.login-field-error::before { content: "!"; display: inline-grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; color: #fff; background: #d74864; font-size: .62rem; }
.login-field.has-error .login-simple-input { border-color: #e4e0ee; background: #fcfbff; box-shadow: none; }
.login-field.has-error .login-field-error:not(:empty) { display: flex; }

.login-simple-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(112deg, #5720d9, #913af0);
    box-shadow: 0 12px 23px rgba(92, 32, 231, .24);
    font: 800 .82rem/1 "Alexandria", sans-serif;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-simple-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 28px rgba(92, 32, 231, .3); filter: brightness(1.02); }
.login-simple-submit:focus-visible { outline: 3px solid rgba(117, 51, 231, .3); outline-offset: 3px; }

.login-student-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 13px; color: #756c90; font-size: .67rem; font-weight: 700; line-height: 1.6; }
.login-student-hint i { color: #6e2edb; font-size: .78rem; }
.login-simple-links { color: #766f8d; font-size: .7rem; }
.login-simple-links a { color: #6828db; font-weight: 800; text-decoration: none; }
.login-simple-links p { margin: 0; }
.login-simple-alert { display: flex; align-items: flex-start; gap: 10px; margin: -5px 0 20px; padding: 13px 14px; border: 1px solid #f0c6cf; border-radius: 15px; color: #a22f48; background: #fff6f7; text-align: right; }
.login-simple-alert > i { margin-top: 2px; font-size: 17px; }
.login-simple-alert strong { display: block; font-size: .76rem; }
.login-simple-alert p { margin: 3px 0 0; font-size: .7rem; line-height: 1.65; }

@keyframes login-simple-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 450px) {
    body.liquid-body.login-simple-page .app-main { padding-inline: 12px !important; }
    .login-simple-card { border-radius: 22px; padding: 26px 18px 20px; }
    .login-simple-shell { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-simple-card { animation: none; }
    .login-simple-submit { transition: none; }
    .login-simple-submit:hover { transform: none; }
}
