:root {
    --auth-navy: #061925;
    --auth-navy-2: #0a3343;
    --auth-teal: #0b8b80;
    --auth-teal-bright: #26cfb8;
    --auth-gold: #e3ad4c;
    --auth-ink: #102a36;
    --auth-muted: #657c86;
    --auth-line: #d8e6e8;
    --auth-danger: #b63b4a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-body { margin: 0; color: var(--auth-ink); background: #edf5f5; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.auth-showcase { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100vh; overflow: hidden; padding: 64px; color: #fff; background: radial-gradient(circle at 14% 10%, rgba(38,207,184,.28), transparent 28rem), radial-gradient(circle at 88% 78%, rgba(227,173,76,.15), transparent 24rem), linear-gradient(145deg, var(--auth-navy), var(--auth-navy-2) 62%, #08766e); }
.auth-showcase::before, .auth-showcase::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.auth-showcase::before { width: 480px; height: 480px; right: -170px; top: -150px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 65px rgba(255,255,255,.018), 0 0 0 130px rgba(255,255,255,.012); animation: authOrbit 18s linear infinite; }
.auth-showcase::after { width: 230px; height: 230px; left: -80px; bottom: -95px; background: radial-gradient(circle, rgba(38,207,184,.16), transparent 68%); animation: authFloat 7s ease-in-out infinite; }
.auth-brand { position: absolute; top: 42px; left: 52px; display: flex; align-items: center; gap: 13px; }
.auth-brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; color: #dffffa; background: linear-gradient(145deg, rgba(38,207,184,.28), rgba(255,255,255,.05)); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 12px 30px rgba(0,0,0,.18); font-weight: 900; letter-spacing: -.08em; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 15px; }
.auth-brand small { margin-top: 3px; color: #91b8c0; font-size: 10px; }
.auth-copy { width: min(660px, 100%); animation: authEnter .65s cubic-bezier(.2,.8,.2,1) both; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--auth-teal-bright); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.auth-eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 99px; background: currentColor; }
.auth-copy h1 { max-width: 620px; margin: 12px 0 16px; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.06em; }
.auth-copy > p { max-width: 590px; margin: 0; color: #b4ced4; font-size: 14px; line-height: 1.72; }
.auth-trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 32px; }
.auth-trust article { padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.05); backdrop-filter: blur(12px); transition: transform .25s ease, background .25s ease; }
.auth-trust article:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.auth-trust i { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 11px; border-radius: 10px; color: var(--auth-teal-bright); background: rgba(38,207,184,.14); font-style: normal; font-weight: 900; }
.auth-trust b, .auth-trust small { display: block; }
.auth-trust b { font-size: 11px; }
.auth-trust small { margin-top: 5px; color: #8fb0b8; font-size: 9px; line-height: 1.5; }

.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: 42px; background: radial-gradient(circle at 90% 8%, rgba(11,139,128,.11), transparent 22rem), radial-gradient(circle at 8% 92%, rgba(227,173,76,.09), transparent 18rem), #f7fafa; }
.auth-card { width: min(480px, 100%); padding: 30px; border: 1px solid rgba(216,230,232,.92); border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 30px 80px rgba(10,46,59,.15); animation: authCard .55s cubic-bezier(.2,.8,.2,1) both; }
.auth-switcher { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 27px; padding: 6px; border: 1px solid #dce9ea; border-radius: 16px; background: #edf5f5; }
.auth-role { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; overflow: hidden; border-radius: 11px; color: #607780; text-decoration: none; font-size: 10px; font-weight: 900; transition: color .25s ease, transform .25s ease, background .25s ease, box-shadow .25s ease; }
.auth-role span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; color: #47717a; background: rgba(255,255,255,.7); }
.auth-role:hover { color: var(--auth-teal); transform: translateY(-2px); }
.auth-role.active { color: #fff; background: linear-gradient(135deg, #0b8b80, #0a6d68); box-shadow: 0 10px 23px rgba(11,139,128,.25); }
.auth-role.active span { color: #fff; background: rgba(255,255,255,.15); }
.auth-heading h2 { margin: 8px 0 7px; font-size: 29px; letter-spacing: -.045em; }
.auth-heading p { margin: 0 0 24px; color: var(--auth-muted); font-size: 11px; line-height: 1.65; }
.auth-alert { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f2cdd2; border-radius: 12px; color: #963342; background: #fff4f5; font-size: 10px; line-height: 1.55; }
.auth-alert span { font-weight: 900; }
.auth-alert.success { border-color:#bce7dc;color:#17685e;background:#effbf7; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > span { color: #294752; font-size: 10px; font-weight: 850; }
.auth-field input { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #cfdee1; border-radius: 13px; outline: 0; color: #102a36; background: #fbfdfd; font: inherit; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.auth-field input:focus { border-color: #20a997; box-shadow: 0 0 0 4px rgba(32,169,151,.12); transform: translateY(-1px); }
.auth-password { position: relative; }
.auth-password input { padding-right: 67px; }
.auth-password button { position: absolute; top: 7px; right: 7px; bottom: 7px; min-width: 53px; border: 0; border-radius: 9px; color: #0b756d; background: #e5f6f3; font-size: 9px; font-weight: 900; cursor: pointer; }
.auth-school { display: none; align-items: center; gap: 11px; min-height: 55px; margin: -3px 0 1px; padding: 10px 12px; border: 1px solid #cfe9e5; border-radius: 13px; color: #36636a; background: linear-gradient(135deg,#f2fbf9,#f8fcfc); font-size: 9px; line-height: 1.45; }
.auth-school.visible { display: flex; animation: authSchool .3s ease both; }
.auth-school.error { border-color: #f2d1d5; color: #a24853; background: #fff6f7; }
.auth-school-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #08766e; background: #dff5f1; font-weight: 900; }
.auth-school.error .auth-school-icon { color: #a24853; background: #fbe8ea; }
.auth-school strong, .auth-school small { display: block; }
.auth-school strong { color: #163d45; font-size: 10px; }
.auth-school.error strong { color: #8f3643; }
.auth-submit { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 51px; margin-top: 2px; padding: 0 17px; overflow: hidden; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#0b8b80,#087069); box-shadow: 0 13px 29px rgba(11,139,128,.25); font-size: 11px; font-weight: 900; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease; }
.auth-submit::before { content: ""; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(100deg,transparent,rgba(255,255,255,.2),transparent); transition: transform .65s ease; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(11,139,128,.31); }
.auth-submit:hover::before { transform: translateX(110%); }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.auth-submit i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: rgba(255,255,255,.15); font-style: normal; }
.auth-meta { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; margin-top: 20px; padding-top: 17px; border-top: 1px solid #e1ebed; }
.auth-meta a { color: #08766e; font-size: 9px; font-weight: 850; text-decoration: none; }
.auth-meta a:hover { text-decoration: underline; }
.auth-secure { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; color: #8ca0a7; font-size: 8px; }

@keyframes authEnter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes authCard { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes authSchool { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes authFloat { 50% { transform: translate3d(18px,-15px,0); } }
@keyframes authOrbit { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-showcase { align-items: flex-end; min-height: 330px; padding: 110px 30px 34px; }
    .auth-brand { top: 27px; left: 29px; }
    .auth-copy h1 { font-size: 38px; }
    .auth-trust { display: none; }
    .auth-panel { min-height: auto; padding: 30px 18px; }
}
@media (max-width: 520px) {
    .auth-showcase { min-height: 270px; padding: 94px 21px 27px; }
    .auth-copy h1 { font-size: 31px; }
    .auth-copy > p { font-size: 11px; }
    .auth-panel { padding: 18px 11px 28px; }
    .auth-card { padding: 23px 17px; border-radius: 21px; }
    .auth-field input { font-size:16px; }
    .auth-submit { min-height:54px; }
    .auth-role { flex-direction: column; gap: 3px; min-height: 54px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
