:root {
  --navy: #1e3459;
  --navy-deep: #142541;
  --yellow: #ffd445;
  --ink: #172238;
  --muted: #68758a;
  --line: #dbe2eb;
  --canvas: #f2f5f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.portal-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 8% 18%, rgba(255, 212, 69, .16), transparent 23rem), linear-gradient(135deg, #f7f9fc 0%, #eef3f8 100%); }
.brand-bar { height: 7px; background: var(--yellow); }
.site-header { width: min(1160px, calc(100% - 40px)); min-height: 94px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: clamp(215px, 24vw, 310px); height: auto; }
.secure-label { display: flex; align-items: center; gap: 8px; color: #516076; font-size: 13px; font-weight: 700; }
.lock-icon { color: #29845c; font-size: 14px; }

.content-grid { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 56px 0 88px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, .72fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.eyebrow { display: inline-flex; padding: 8px 13px; border-radius: 999px; color: var(--navy); background: rgba(30, 52, 89, .08); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.intro-panel h1 { max-width: 650px; margin: 22px 0 18px; color: var(--navy-deep); font-size: clamp(42px, 5vw, 68px); line-height: .99; letter-spacing: -.05em; }
.intro-panel > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.benefit-list { margin-top: 36px; display: grid; gap: 18px; }
.benefit-list > div { display: flex; align-items: center; gap: 14px; }
.benefit-list > div > span { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: 13px; font-weight: 900; }
.benefit-list p { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.benefit-list strong { color: var(--navy); font-size: 14px; }
.benefit-list small { color: var(--muted); font-size: 13px; }

.search-card { min-height: 520px; padding: clamp(28px, 4vw, 42px); border: 1px solid rgba(206, 216, 228, .9); border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 26px 75px rgba(28, 48, 79, .14); }
.card-heading { margin-bottom: 34px; display: flex; align-items: center; gap: 15px; }
.card-heading h2, .result-view h2 { margin: 0; color: var(--navy); font-size: 25px; letter-spacing: -.02em; }
.card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.icon-box { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--navy); background: rgba(255, 212, 69, .25); font-size: 25px; font-weight: 400; }
form { display: flex; flex-direction: column; }
label { margin: 0 0 9px; color: #2d3d56; font-size: 13px; font-weight: 800; }
label:not(:first-of-type) { margin-top: 23px; }
input { width: 100%; min-height: 53px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fbfcfe; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus { border-color: var(--navy); background: white; box-shadow: 0 0 0 4px rgba(30, 52, 89, .1); }
.field-help { margin: 7px 2px 0; align-self: flex-end; color: #8a95a5; font-size: 11px; }
.error-message { margin-top: 18px; padding: 12px 14px; border-radius: 10px; color: #9e342b; background: #fff0ef; font-size: 13px; line-height: 1.45; }
.primary-button { min-height: 54px; margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; cursor: pointer; color: white; background: var(--navy); box-shadow: 0 12px 25px rgba(30, 52, 89, .22); font-weight: 800; transition: transform .15s, box-shadow .15s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(30, 52, 89, .26); }
.demo-note { margin-top: 20px; padding: 13px 15px; display: flex; flex-direction: column; gap: 4px; border: 1px dashed #c7d0dc; border-radius: 11px; color: var(--muted); background: #f8fafc; font-size: 11px; }
.demo-note strong { color: #526176; font-size: 12px; }

.result-view { padding-top: 2px; }
.success-badge { margin-bottom: 18px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; color: #24734f; background: #e5f5ed; font-size: 12px; font-weight: 800; }
.student-meta { margin: 9px 0 27px; display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; }
.student-meta span { padding: 6px 9px; border-radius: 8px; background: #f0f4f8; }
.student-meta strong { color: var(--navy); }
.access-card { margin-top: 13px; padding: 15px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.service-logo, .mail-logo, .transfer-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; }
.service-logo { padding: 6px; background: white; border: 1px solid var(--line); overflow: hidden; }
.service-logo img { display: block; width: 100%; max-height: 34px; object-fit: contain; }
.mail-logo { color: var(--navy); background: rgba(255, 212, 69, .25); font-size: 22px; font-weight: 900; }
.transfer-logo { padding: 7px; background: white; border: 1px solid var(--line); }
.transfer-logo img { display: block; width: 100%; max-height: 32px; object-fit: contain; }
.transfer-card { grid-template-columns: 72px minmax(0, 1fr); }
.transfer-card .transfer-logo { width: 72px; height: 50px; padding: 6px; }
.access-details { min-width: 0; display: grid; gap: 10px; }
.access-details h3 { margin: 1px 0 3px; color: var(--navy); font-size: 14px; }
.credential-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credential-row > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.credential-row small { color: var(--muted); font-size: 11px; }
.credential-row strong { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.copy-button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; color: var(--navy); background: white; font-size: 10px; font-weight: 800; }
.service-button { width: fit-content; padding: 9px 12px; border-radius: 8px; color: white; background: var(--navy); text-decoration: none; font-size: 11px; font-weight: 800; }
.service-button-yellow { color: var(--navy); background: var(--yellow); }
.quick-links { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-links .service-button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; }
.lirmi-button { gap: 9px; background: white; color: var(--navy); border: 1px solid var(--line); }
.lirmi-button img { width: 58px; height: 28px; object-fit: contain; }
.lirmi-button span { flex: 1; }
.spei-note, .reference-alert { margin: 4px 0 0; padding: 9px 10px; border-radius: 8px; font-size: 10px; line-height: 1.45; }
.spei-note { color: #5f4b00; background: #fff7d2; }
.reference-alert { color: #9e342b; background: #fff0ef; font-weight: 700; }
.payment-footer { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--yellow); border-radius: 8px; color: #43516a; background: #f3f6fa; font-size: 11px; line-height: 1.55; }
.support-note { margin: 24px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.secondary-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: white; text-decoration: none; font-size: 13px; font-weight: 800; }
.secondary-button:hover { border-color: var(--navy); }

footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(196, 207, 221, .72); color: #7b8798; font-size: 11px; }

@media (max-width: 850px) {
  .content-grid { grid-template-columns: 1fr; gap: 42px; padding-top: 34px; }
  .intro-panel { text-align: center; }
  .intro-panel > p { margin-inline: auto; }
  .benefit-list { max-width: 400px; margin-inline: auto; text-align: left; }
  .search-card { width: min(100%, 540px); margin: 0 auto; }
}

@media (max-width: 520px) {
  .site-header, .content-grid, footer { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 82px; }
  .brand-logo { width: 190px; }
  .secure-label { font-size: 12px; }
  .content-grid { padding: 26px 0 58px; gap: 32px; }
  .intro-panel h1 { font-size: 40px; }
  .intro-panel > p { font-size: 16px; }
  .benefit-list { display: none; }
  .search-card { min-height: 0; padding: 25px 20px; border-radius: 20px; }
  .card-heading { margin-bottom: 27px; }
  footer { flex-direction: column; text-align: center; }
  .access-card { grid-template-columns: 42px minmax(0, 1fr); padding: 13px; }
  .service-logo, .mail-logo, .transfer-logo { width: 42px; height: 42px; }
  .transfer-card { grid-template-columns: 58px minmax(0, 1fr); }
  .transfer-card .transfer-logo { width: 58px; height: 44px; }
  .quick-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
