/* 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%, 440px);
    gap: 18px;
}

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

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

.login-simple-card {
    position: relative;
    overflow: hidden;
    padding: clamp(27px, 6vw, 38px) clamp(20px, 6vw, 36px) 24px;
    border: 1px solid rgba(101, 61, 185, .14);
    border-radius: 28px;
    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-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 70px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #b7eb40, #7a31e7);
    transform: translateX(50%);
}

.login-simple-header { margin-bottom: 24px; }
.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7434df;
    font-size: .74rem;
    font-weight: 800;
}
.login-kicker i { color: #8d4bea; }
.login-simple-header h1 {
    margin: 8px 0 7px;
    color: #221053;
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -.055em;
}
.login-simple-header p { margin: 0; color: #79738f; font-size: .82rem; line-height: 1.7; }

.login-simple-form { display: grid; gap: 17px; text-align: right; }
.login-field { display: grid; gap: 8px; }
.login-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #2b1765; font-size: .8rem; font-weight: 800; }
.login-field-hint { color: #948ca9; font-size: .65rem; font-weight: 600; white-space: nowrap; }
.login-simple-input {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 15px;
    border: 1px solid #e4e0ee;
    border-radius: 15px;
    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: 26px; flex: 0 0 26px; font-size: 16px; }
.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: 55px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(112deg, #5720d9, #913af0);
    box-shadow: 0 12px 23px rgba(92, 32, 231, .24);
    font: 800 .86rem/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-note { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 18px; padding: 14px; border: 1px solid #e8e0fa; border-radius: 16px; color: #5c5276; background: #faf8ff; text-align: right; }
.login-student-note > span { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #7030dd; background: #eadfff; }
.login-student-note strong { display: block; margin: 0 0 3px; color: #34206f; font-size: .76rem; }
.login-student-note p { margin: 0; font-size: .69rem; line-height: 1.75; }
.login-simple-links { color: #766f8d; font-size: .73rem; }
.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: 24px; padding: 28px 18px 22px; }
    .login-simple-shell { gap: 14px; }
    .login-field label { align-items: flex-start; flex-direction: column; gap: 3px; }
    .login-field-hint { white-space: normal; }
}

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