:root{--green:#0b6b3a;--gold:#f2b705;--ink:#14231b;--cream:#f7f4ed;--muted:#68766f;--line:#e4e9e4}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;min-height:100vh;color:var(--ink)}
body.auth-page{min-height:100svh;background:#13231d;position:relative;isolation:isolate;overflow-x:hidden}
body.auth-page::before{content:"";position:fixed;inset:0;z-index:-2;background:url('../assets/uniben-hero.jpg') center 54%/cover no-repeat;transform:scale(1.015)}
body.auth-page::after{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,22,17,.82) 0%,rgba(10,26,19,.64) 42%,rgba(7,23,17,.32) 100%),linear-gradient(0deg,rgba(8,22,17,.78),transparent 46%,rgba(8,22,17,.25))}
button{font:inherit;cursor:pointer}button:disabled{opacity:.58;cursor:not-allowed}.hidden{display:none!important}
.landing{min-height:100svh;max-width:1600px;margin:0 auto;padding:0 clamp(24px,7vw,110px);position:relative;color:#fff;display:flex;flex-direction:column}
.site-nav{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.16)}
.brand,.auth-brand{display:inline-flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-size:14px;font-weight:850;letter-spacing:.14em}
.brand b,.auth-brand b{color:#f4c64e}
.brand-mark{width:36px;height:36px;border:1px solid rgba(255,255,255,.45);display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.1);font-family:Georgia,serif;font-size:22px;font-weight:700;letter-spacing:0;color:#f8d56f}
.nav-actions{display:flex;align-items:center;gap:22px}.nav-actions button{width:auto;margin:0;padding:11px 15px;border:0;color:#fff;font-size:13px;font-weight:750;background:transparent}.nav-actions .nav-join{padding:12px 17px;background:#f3c74e;color:#172018;border-radius:9px;box-shadow:0 8px 22px #0002}.nav-join span{margin-left:14px;font-size:16px}
.hero-copy{width:min(670px,100%);padding:clamp(65px,11vh,130px) 0 46px;flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.eyebrow{display:flex;align-items:center;gap:10px;color:#eee4c6;font-size:11px;font-weight:800;letter-spacing:.22em}.eyebrow i{width:7px;height:7px;border-radius:50%;background:#f5c743;box-shadow:0 0 14px #ffd86a}
.hero-copy h1{font-size:clamp(68px,11vw,132px);letter-spacing:-.085em;line-height:.78;margin:26px 0 22px;font-weight:900;text-shadow:0 12px 30px #07180f66}.hero-copy h1 em{font-style:normal;color:#f3c74e}
.hero-lede{max-width:490px;margin:0;color:rgba(255,255,255,.84);font-size:clamp(16px,2vw,20px);line-height:1.65;letter-spacing:-.015em}
.hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:32px 0 0}.hero-actions button{width:auto;margin:0;padding:14px 20px;border-radius:10px;font-size:14px;font-weight:800;transition:transform .16s,background .16s}.hero-actions button:hover,.nav-actions button:hover{transform:translateY(-2px)}.hero-primary{background:#f3c74e;color:#172018;border:0;box-shadow:0 12px 26px #0003}.hero-primary span{padding-left:18px;font-size:17px}.hero-secondary{background:rgba(255,255,255,.12);color:white;border:1px solid rgba(255,255,255,.26);backdrop-filter:blur(10px)}
.student-anchor{display:inline-flex;align-items:center;gap:12px;margin-top:52px;color:#fff;text-decoration:none;font-size:10px;font-weight:850;letter-spacing:.2em}.student-anchor span{width:26px;height:26px;display:grid;place-items:center;border:1px solid #ffffff78;border-radius:50%;font-size:15px;letter-spacing:0;transition:transform .18s}.student-anchor:hover span{transform:translateY(3px)}
.life-note{position:absolute;right:clamp(24px,7vw,110px);bottom:102px;width:min(385px,34vw);display:grid;grid-template-columns:40px 1fr 24px;align-items:start;gap:12px;padding:20px 19px;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:rgba(9,23,17,.42);backdrop-filter:blur(16px);box-shadow:0 16px 35px #0002}.life-number{font-size:11px;color:#f3c74e;font-weight:800;letter-spacing:.12em}.life-note b{display:block;font-size:14px;letter-spacing:-.02em}.life-note p{font-size:12px;color:rgba(255,255,255,.72);line-height:1.6;margin:6px 0 0}.life-arrow{color:#f3c74e;font-size:18px;text-align:right}.landing-footer{display:flex;justify-content:space-between;gap:12px;padding:21px 0 24px;color:rgba(255,255,255,.6);font-size:9px;font-weight:750;letter-spacing:.16em}
body.auth-mode{min-height:100svh;display:flex;align-items:center;justify-content:center;padding:28px 16px;overflow-y:auto}
.card{width:min(100%,480px);background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.76);border-radius:22px;padding:24px 28px 22px;box-shadow:0 28px 90px rgba(0,0,0,.32);backdrop-filter:blur(15px)}
.auth-card{position:relative;margin:auto}.auth-brand{color:#143625;font-size:12px;letter-spacing:.16em}.auth-brand .brand-mark{width:32px;height:32px;color:#0b6b3a;border-color:#0b6b3a2b;background:#e8f2ec;font-size:20px}.auth-brand b{color:#bb8d0d}
.back-home{position:absolute;top:24px;right:25px;width:auto;margin:0;padding:8px 10px;background:transparent;color:#6b776f;font-size:12px;font-weight:700}.back-home:hover{color:var(--green)}
.auth-heading{margin:25px 0 20px}.auth-heading h2{margin:0 0 5px;color:#173c2b;font-size:28px;line-height:1.1;letter-spacing:-.055em}.sub{margin:0;color:#718078;font-size:13px;line-height:1.5}
label{display:block;font-size:12px;font-weight:750;color:#415148;margin:12px 0 6px}input,select{width:100%;padding:12px 13px;border:1px solid #d8e0da;border-radius:10px;font-size:14px;background:#fff;color:#20362a;transition:border-color .15s,box-shadow .15s}input::placeholder{color:#a1aba5}input:focus,select:focus{outline:none;border-color:#318057;box-shadow:0 0 0 3px rgba(49,128,87,.1)}.row{display:flex;gap:12px}.row>*{flex:1;min-width:0}.optional{float:right;color:#8b968f;font-size:9px;letter-spacing:.11em}.female-body-option{color:#173c2b}
.auth-submit,.card>button:not(.link):not(.back-home){display:block;width:100%;margin:20px 0 0;padding:14px;border:0;border-radius:10px;background:linear-gradient(120deg,#0b6b3a,#13804a);color:#fff;font-size:14px;font-weight:850;box-shadow:0 7px 18px rgba(11,107,58,.2);transition:transform .15s,filter .15s}.auth-submit:hover{transform:translateY(-1px);filter:brightness(1.05)}.link{width:100%;margin:13px 0 0;padding:5px;border:0;background:transparent;color:#1d7547;font-size:12px;font-weight:800}.auth-foot{margin:18px 5px 0;text-align:center;color:#93a098;font-size:10px;line-height:1.5}.err{padding:10px 12px;margin-top:13px;border:1px solid #f2cbcb;border-radius:9px;background:#fff1f0;color:#a11;font-size:12px;display:none}
.profile p{margin:8px 0;font-size:14px}.profile b{color:var(--green)}.portal-card h1{margin:0 0 14px;color:var(--green)}
.overlay{position:fixed;inset:0;z-index:10;display:flex;overflow-y:auto;color:#fff;background:linear-gradient(160deg,rgba(7,26,17,.96) 0%,rgba(8,33,21,.94) 45%,rgba(3,14,9,.98) 100%),url('../assets/uniben-hero.jpg') center 54%/cover no-repeat;padding:clamp(12px,3.5vh,32px) 16px 40px}
.adm{width:min(780px,100%);margin:auto;display:flex;flex-direction:column;animation:rise .7s}
.adm-top{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.14)}
.adm-brand{display:inline-flex;align-items:center;gap:11px;font-size:14px;font-weight:850;letter-spacing:.14em}
.adm-brand b{color:#f4c64e}
.adm-steps{display:flex;gap:6px;list-style:none;margin:0;padding:0;flex-wrap:wrap;justify-content:flex-end}
.adm-steps li{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:800;letter-spacing:.12em;color:rgba(255,255,255,.5);padding:6px 11px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.05)}
.adm-steps li b{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);font-size:10px}
.adm-steps li.done{background:#f3c74e;border-color:#f3c74e;color:#0e2418}
.adm-steps li.done b{background:#0e2418;color:#f3c74e}
.adm-steps li.cur{color:#f5d684;border-color:#f3c74e80;box-shadow:0 0 0 1px #f3c74e30,0 0 18px #f3c74e1f}
.adm-body{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:clamp(20px,5vh,48px) 0 8px}
.cap{font-size:64px;animation:spin 1.2s ease-out;filter:drop-shadow(0 10px 24px #0006)}
.overlay h2{font-size:clamp(21px,3.4vw,28px);max-width:580px;margin:10px 0 14px;letter-spacing:-.02em;line-height:1.2}
.stud{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px;width:min(500px,100%);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:14px 18px;text-align:left;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.stud p{margin:4px 0;font-size:13px;color:rgba(255,255,255,.85)}
.stud b{color:#f3c74e}
.adm-cta{margin-top:20px}
.adm-cta button:not(.link){padding:15px 24px;border:0;border-radius:12px;background:#f3c74e;color:#172018;font-weight:850;font-size:15px;box-shadow:0 12px 28px #f3c74e2e;transition:transform .15s}
.adm-cta button:not(.link):hover{transform:translateY(-2px)}
.adm-note{font-size:11px;color:rgba(255,255,255,.6);margin:11px 0 0}
.adm-skip{display:inline;width:auto;margin:0;padding:0;color:#7fd6a4;font-size:11px;text-decoration:underline}
.hostelbox{width:min(880px,100%);margin-top:18px;text-align:left}
.overlay .hp-h{background:#ffffff14!important;color:#fff!important;margin:0}
.overlay .hp-h.on{background:#f2b70533!important}
.overlay .hp-go{background:#f2b705!important;color:#222!important}
.overlay .hp-go:disabled{background:#999!important}
#enter{margin-top:20px;padding:15px 26px;border:0;border-radius:12px;background:#f3c74e;color:#172018;font-weight:850;font-size:15px;box-shadow:0 12px 28px #f3c74e2e}
.conf{position:absolute;top:-10px;width:9px;height:14px;animation:fall linear forwards}
@keyframes rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes spin{from{transform:scale(0) rotate(-360deg)}to{transform:scale(1) rotate(0)}}
@keyframes fall{to{transform:translateY(105vh) rotate(720deg)}}
@media(max-width:640px){.adm-top{flex-direction:column;align-items:flex-start}.adm-steps{justify-content:flex-start}.adm-steps li span{display:none}.adm-steps li{padding:6px}.stud{grid-template-columns:1fr}}
@media(max-width:760px){.landing{padding:0 26px}.site-nav{height:74px}.brand{font-size:11px}.brand-mark{width:32px;height:32px}.nav-actions{gap:4px}.nav-actions button{padding:9px;font-size:12px}.nav-actions .nav-join{padding:10px 12px}.hero-copy{padding:72px 0 60px;justify-content:flex-start}.hero-copy h1{font-size:clamp(68px,18vw,110px);margin-top:23px}.hero-lede{max-width:430px;font-size:16px}.life-note{position:relative;right:auto;bottom:auto;width:100%;max-width:440px;margin:0 0 18px}.landing-footer{font-size:8px}.student-anchor{margin-top:36px}}
@media(max-width:520px){body.auth-mode{padding:16px 11px}.card{padding:21px 19px 18px;border-radius:18px}.auth-heading{margin:23px 0 16px}.auth-heading h2{font-size:25px}.back-home{top:19px;right:16px}.row{gap:9px}.landing{padding:0 20px}.nav-actions .nav-login{padding:8px}.hero-actions{width:100%;align-items:stretch;flex-direction:column}.hero-actions button{width:100%}.landing-footer{flex-direction:column;gap:5px}.student-anchor{letter-spacing:.14em}.life-note{padding:16px}.auth-foot{font-size:9px}}
