/* Login, sign-up and password pages. Builds on lms-public.css. */
body.lms-auth { margin: 0; color: var(--body); background: var(--page); }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

.auth-pane { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.auth-box { width: 100%; max-width: 430px; margin: 0 auto; animation: rise .5s var(--ease) both; }
.auth-box .site-brand { margin-bottom: 2.25rem; }
.auth-brand-logo { display: block; max-height: 48px; max-width: 200px; margin-bottom: 2.25rem; }
.auth-box h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.015em; margin: 0 0 .4rem; color: var(--ink); }
.auth-lead { margin-bottom: 1.6rem; color: var(--muted); }

.auth-field { margin-bottom: 1rem; }
.auth-field label { display: block; margin-bottom: .3rem; font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.auth-input { position: relative; }
.auth-input > i { position: absolute; top: 50%; left: .95rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.auth-input input { width: 100%; padding: .72rem 2.9rem .72rem 2.6rem; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.auth-input input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(67, 94, 190, .15); }
.auth-input input.is-invalid { border-color: #d9465b; }
.auth-toggle { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); padding: .25rem .5rem; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.auth-toggle:hover { color: var(--brand-deep); background: rgba(67, 94, 190, .09); }
.auth-error { display: block; margin-top: .25rem; font-size: .85rem; color: #b92d43; }
.auth-hint { display: block; margin-top: .25rem; font-size: .8rem; color: var(--muted); }

.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.25rem; font-size: .9rem; }
.auth-row label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.auth-row .form-check-input { margin: 0; }
.lms-auth .btn-lms { width: 100%; padding-block: .8rem; }
.auth-foot { margin: 1.5rem 0 0; text-align: center; color: var(--muted); }
.auth-link { font-weight: 700; color: var(--brand-deep); }
.auth-link:hover { color: var(--brand); text-decoration: underline; }
.auth-alert { padding: .75rem 1rem; margin-bottom: 1.1rem; border-radius: 12px; font-size: .925rem; animation: rise .3s var(--ease) both; }
.auth-alert ul { margin: 0; padding-left: 1.1rem; }
.auth-alert.is-error { color: #8d1f30; background: #fbe4e8; }
.auth-alert.is-success { color: #0c6652; background: #d9f6ee; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Animated side panel */
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); color: #d9ddf2; background: var(--ink); isolation: isolate; }
.auth-side h2 { max-width: 28rem; font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; margin-bottom: .9rem; }
.auth-side p { max-width: 26rem; font-size: 1.05rem; color: #c4c9e4; }
.auth-points { display: grid; gap: .7rem; max-width: 26rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: .8rem; padding: .75rem .95rem; border-radius: 14px; color: #fff; font-weight: 600; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13); animation: rise .6s var(--ease) both; }
.auth-points li:nth-child(2) { animation-delay: .12s; }
.auth-points li:nth-child(3) { animation-delay: .24s; }
.auth-points i { color: var(--accent); font-size: 1.15rem; }

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-side { display: none; }
}
