* { box-sizing: border-box; }
body { margin: 0; background: #f3f5f0; color: #163c2d; font-family: Inter, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.launch { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: clamp(12px, 2.5vh, 22px); width: 100%; margin: auto; }
.welcome { position: relative; overflow: hidden; border-radius: 24px; background: #106040; color: white; padding: 38px 44px 24px; display: flex; flex-direction: column; }
.brand { display: inline-flex; width: 200px; background: white; border-radius: 9px; padding: 10px 14px; }
.brand img { width: 100%; height: auto; }
.welcome-copy { padding: clamp(16px, 4vh, 48px) 0 clamp(12px, 2.5vh, 28px); position: relative; z-index: 1; }
.eyebrow, .overline, .portal-badge, .edition, .welcome-footer, .photo-caption > span { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #d4e5bd; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #d6eb9d; }
h1 { margin: 20px 0 16px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -2.5px; font-weight: 650; }
h1 em { color: #dbeba8; font-family: Georgia, serif; font-weight: 400; }
.welcome-copy p { color: #d0e4d9; font-size: 15px; line-height: 1.8; }
.welcome-photo { position: relative; min-height: 210px; flex: 1; overflow: hidden; border-radius: 16px; background: #215b40; }
.welcome-photo > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.welcome-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, #072d20cc); }
.photo-caption { position: absolute; bottom: 24px; left: 24px; z-index: 1; }
.photo-caption > span { color: #e0edcf; font-size: 9px; }
.photo-caption strong { display: block; margin-top: 10px; font-size: 25px; line-height: 1.2; font-weight: 500; }
.welcome-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; color: #bcd6c8; font-size: 8px; letter-spacing: 1.2px; }
.portal { padding: 22px 46px 8px; display: flex; flex-direction: column; }
.portal-top, .portal-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.portal-badge { border: 1px solid #d3ddd1; padding: 9px 12px; border-radius: 30px; font-size: 9px; letter-spacing: 1px; }
.edition { color: #788479; font-size: 9px; }
.edition span { margin-left: 7px; }
.portal-content { width: 100%; max-width: 440px; margin: auto; padding: clamp(16px, 4vh, 70px) 0; }
.greeting { font-size: 45px; color: #106040; margin-bottom: 28px; line-height: 1; }
.overline { color: #6c7d6d; font-size: 9px; }
h2 { font-size: clamp(28px, 2.6vw, 39px); line-height: 1.15; letter-spacing: -1.5px; margin: 16px 0; font-weight: 650; }
.intro { color: #728074; font-size: 14px; line-height: 1.8; max-width: 330px; margin-bottom: 32px; }
.portal-options { display: grid; gap: 14px; }
.portal-button { display: flex; align-items: center; gap: 16px; padding: 24px 20px; border-radius: 14px; text-decoration: none; border: 1px solid #d5dfd3; transition: transform .18s, box-shadow .18s; }
.portal-button:hover { transform: translateY(-3px); box-shadow: 0 9px 22px #163c2d14; }
.student { background: #106040; color: white; border-color: #106040; }
.staff { background: #fff; }
.role-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #ffffff1f; }
.staff .role-icon { background: #edf3e8; }
.role-icon .bi { font-size: 25px; line-height: 1; }
.role-copy { flex: 1; min-width: 0; }
.role-copy strong { display: block; font-size: 18px; font-weight: 600; }
.role-copy > span { display: block; margin-top: 7px; font-size: 11px; line-height: 1.5; color: #d6e6dc; }
.staff .role-copy > span { color: #758274; }
.arrow { font-size: 24px; font-weight: 400; }
.account-note { display: flex; gap: 8px; align-items: baseline; margin: 24px 0 0; color: #788479; font-size: 11px; line-height: 1.7; }
.portal-footer { border-top: 1px solid #dce2d7; padding-top: 22px; font-size: 10px; line-height: 1.5; color: #778274; }
.portal-footer a { text-decoration: none; color: #106040; }
a:focus-visible { outline: 3px solid #e4a745; outline-offset: 5px; }
@media (min-width: 721px) and (max-height: 820px) {
  .welcome { padding: 24px 28px 18px; }
  .welcome-copy { padding: 20px 0 12px; }
  h1 { font-size: clamp(36px, 6vh, 54px); margin: 14px 0 12px; }
  .welcome-copy p { margin: 10px 0; line-height: 1.6; }
  .welcome-photo { min-height: 140px; }
  .welcome-footer { padding-top: 16px; }
  .portal-content { padding: 18px 0; }
  .greeting { font-size: 34px; margin-bottom: 16px; }
  .intro { margin-bottom: 20px; }
  .portal-button { padding: 16px; }
  .account-note { margin-top: 16px; }
  .portal-footer { padding-top: 14px; }
}
@media (max-width: 1000px) { .welcome { padding: 30px 28px 24px; } .portal { padding: 22px 28px 8px; } .portal-button { gap: 12px; padding: 20px 16px; } .role-copy strong { font-size: 17px; } }
@media (max-width: 720px) {
  .launch { display: flex; flex-direction: column; padding: 12px; }
  .welcome { padding: 24px; border-radius: 20px; }
  .brand { width: 165px; }
  .welcome-copy { padding: 26px 0 0; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: 39px; letter-spacing: -1.8px; margin: 16px 0 0; }
  h1 br { display: none; }
  .welcome-copy p, .welcome-photo, .welcome-footer { display: none; }
  .portal { padding: 26px 12px max(16px, env(safe-area-inset-bottom)); flex: 1; }
  .portal-top { display: none; }
  .portal-content { padding: 0 0 30px; }
  .greeting { display: none; }
  h2 { font-size: 30px; margin: 12px 0; }
  .intro { margin: 0 0 24px; }
  .portal-button { padding: 21px 16px; }
  .portal-footer { margin-top: auto; gap: 12px; font-size: 9px; }
}
@media (max-width: 720px) and (max-height: 740px) {
  .welcome { padding: 18px; }
  .welcome-copy { padding-top: 16px; }
  h1 { font-size: 32px; margin-top: 12px; }
  .portal { padding-top: 18px; }
  .portal-content { padding-bottom: 18px; }
  h2 { font-size: 27px; }
  .intro { margin-bottom: 16px; }
  .portal-button { padding: 14px 12px; }
  .portal-options { gap: 10px; }
  .account-note { margin-top: 14px; }
  .portal-footer { padding-top: 14px; }
}
.welcome { isolation: isolate; }
.welcome-shapes { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.welcome-shapes span { position: absolute; display: block; }
.shape-ring { width: 250px; height: 250px; top: -75px; right: -80px; border: 35px solid #dbeba819; border-radius: 50%; animation: welcome-drift 14s ease-in-out infinite alternate; }
.shape-disc { width: 120px; height: 120px; top: 32%; right: -40px; border-radius: 50%; background: #dbeba814; animation: welcome-drift 11s ease-in-out -4s infinite alternate-reverse; }
.shape-square { width: 62px; height: 62px; top: 19%; right: 20%; border: 1px solid #dbeba838; border-radius: 14px; animation: welcome-turn 24s linear infinite; }
.shape-dot { width: 18px; height: 18px; top: 45%; left: 16px; background: #dbeba830; border-radius: 50%; animation: welcome-drift 9s ease-in-out -3s infinite alternate; }
@keyframes welcome-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-18px, 22px, 0); } }
@keyframes welcome-turn { from { transform: rotate(15deg); } to { transform: rotate(375deg); } }
@media (max-width: 720px) {
  .shape-ring { width: 180px; height: 180px; border-width: 24px; top: -55px; right: -45px; }
  .shape-square { width: 42px; height: 42px; top: 45%; right: 13%; }
  .shape-disc { width: 75px; height: 75px; top: auto; bottom: -30px; right: 35%; }
  .shape-dot { top: 48%; left: 12px; width: 10px; height: 10px; }
}
@media (prefers-reduced-motion: reduce) { .portal-button { transition: none; } .welcome-shapes span { animation: none; } }
