.portal { min-height: 100dvh; padding: 0 clamp(18px, 5vw, 78px) 34px; background: #faf9f6; color: #17223b; }
.portal-top, .portal-main { max-width: 1420px; margin-inline: auto; }
.portal-top { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #17223b; font-size: 1.5rem; font-weight: 790; letter-spacing: -.055em; }
.portal-brand .brand-mark { width: 41px; height: 41px; border-radius: 12px; }
.portal-brand .brand-mark::after { top: 12px; }
.portal-languages { max-width: 62%; }
.portal-languages select { height: 42px; border: 1px solid #dedfe3; border-radius: 24px; padding-inline-start: 15px; background: white; color: #36477a; font: inherit; font-size: .86rem; font-weight: 650; }
.portal-footer { max-width: 1420px; margin: 19px auto 0; font-size: .75rem; }
.portal-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(23px, 4.8vw, 78px); align-items: stretch; }
.portal-content { display: grid; align-items: center; min-width: 0; padding: 28px 0; }
.portal-content h1 { margin: 0; font-size: clamp(2.5rem, 5.9vw, 5.6rem); line-height: .99; font-weight: 780; letter-spacing: -.075em; text-wrap: balance; }
.portal-accent { color: #3454d8; }
.portal-content p { margin: 24px 0 0; max-width: 390px; color: #505e78; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.53; }
.portal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.portal-primary, .portal-secondary { display: inline-flex; min-height: 50px; justify-content: center; align-items: center; padding: 0 20px; border: 1px solid transparent; border-radius: 11px; font: inherit; font-weight: 680; }
.portal-primary { color: #fff; background: #294bda; }
.portal-primary:hover { background: #203bb0; }
.portal-primary:disabled { background: #dde3f6; color: #475779; }
.portal-secondary { background: #fff; border-color: #d9dfee; color: #2842ab; }
.portal-secondary:hover { background: #eef1fc; }
.portal-content .portal-supported { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-top: 21px; font-size: .9rem; }
.portal-supported span[aria-hidden] { color: #3454d8; }
.portal-visual { isolation: isolate; overflow: hidden; position: relative; min-height: clamp(400px, 71vh, 730px); border-radius: 27px; background: #252e44; }
.portal-photo { position: absolute; inset: 0; background-image: var(--portrait); background-position: center; background-size: cover; opacity: 0; transition: opacity .65s ease; }
.portal-photo.is-current { opacity: 1; }
.photo-first { --portrait: url('/people-1.webp'); background-color: #57433b; }
.photo-second { --portrait: url('/people-2.webp'); background-color: #28485b; }
.photo-third { --portrait: url('/people-3.webp'); background-color: #465747; }
.portal-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 46%, #11172956 74%, #0c1426af); }
.portal-greeting { position: absolute; bottom: 66px; inset-inline: 20px; color: #fff; text-align: center; pointer-events: none; }
.portal-greeting span { display: inline-block; max-width: 100%; font-size: clamp(3rem, 7vw, 6.3rem); font-weight: 710; line-height: 1.2; letter-spacing: -.045em; text-shadow: 0 4px 26px #10192bc2; }
@keyframes greeting-in { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.portal-greeting .greeting-in { animation: greeting-in .4s ease-out both; }
.portal-gallery { position: absolute; bottom: 16px; inset-inline: 16px; display: flex; justify-content: center; align-items: center; gap: 4px; }
.portal-gallery button { position: relative; display: grid; place-items: center; width: 34px; height: 44px; background: transparent; border: 0; color: white; }
.portal-gallery button[data-slide]::after { content: ''; width: 8px; height: 8px; border-radius: 9px; background: #ffffff9f; }
.portal-gallery button[data-slide][aria-pressed="true"]::after { width: 21px; background: white; }
.portal-gallery .gallery-pause { position: absolute; right: 0; font-size: 1rem; border-radius: 8px; background: #11182c8c; }
.portal-account { width: min(100%, 480px); }
.portal-account h1 { font-size: clamp(2.25rem, 4.1vw, 3.8rem); line-height: 1.02; }
.portal-account h1:focus { outline: none; }
.portal-account p { margin: 13px 0 20px; font-size: 1rem; }
.portal-back { padding: 10px 0; margin-bottom: 12px; color: #3454b5; border: 0; background: none; font-weight: 650; }
.portal-account form { display: grid; gap: 14px; margin-top: 10px; }
.portal-account form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 650; }
.portal-account input:not([type="checkbox"]), .portal-account select { min-width: 0; width: 100%; height: 48px; padding: 0 11px; border: 1px solid #d4dbea; border-radius: 9px; background: white; color: #17223b; font: inherit; font-weight: 500; }
.portal-account .select-wrap select { padding-inline-end: 42px; }
.portal-account form small { color: #586783; font-size: .82rem; font-weight: 450; line-height: 1.42; }
.pin-heading { display: flex; align-items: center; min-height: 33px; }
.pin-line { position: relative; border-radius: 12px; }
.pin-line:focus-within { outline: 2px solid #8299f4; outline-offset: 3px; }
.pin-line #pin-entry { position: absolute; z-index: 1; inset: 0; height: 100%; opacity: 0; cursor: text; }
#pin-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; pointer-events: none; }
#pin-slots span { display: grid; min-height: 49px; place-items: center; border: 1px solid #d4dbea; border-radius: 10px; background: #fff; color: #243ca4; font-size: 1.25rem; font-weight: 750; }
#pin-slots .filled { border-color: #a6b6ed; background: #f1f4ff; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; margin-top: 11px; }
.pin-pad button { min-height: 43px; border: 1px solid #e1e5f0; border-radius: 9px; color: #2c3b62; background: #fff; font: inherit; font-weight: 650; }
.pin-pad button:hover { background: #edf1fd; }
.pin-pad button:active { background: #dfe7fd; }
.pin-pad .key-zero { grid-column: 2; }
.pin-pad .key-delete { color: #4e5e85; }
.pin-line.sealing #pin-slots span { animation: pin-seal .3s cubic-bezier(.2, .65, .23, 1) both; }
.pin-line.sealing #pin-slots span:nth-child(2) { animation-delay: .02s; }
.pin-line.sealing #pin-slots span:nth-child(3) { animation-delay: .04s; }
.pin-line.sealing #pin-slots span:nth-child(4) { animation-delay: .06s; }
.pin-line.sealing #pin-slots span:nth-child(5) { animation-delay: .08s; }
.pin-line.sealing #pin-slots span:nth-child(6) { animation-delay: .1s; }
@keyframes pin-seal { from { transform: perspective(90px) rotateX(-72deg); opacity: .35; } to { transform: none; opacity: 1; } }
.recovery-reminder { border: 1px solid #dce2f4; padding: 14px; border-radius: 14px; background: #f1f4ff; }
.recovery-row { display: flex; align-items: center; gap: 8px; }
.recovery-row input { flex: 1; }
.recovery-row .portal-secondary { min-height: 48px; padding-inline: 12px; }
.saved-confirm { display: flex; gap: 7px; align-items: center; margin: 15px 0; font-size: .92rem; }
.saved-confirm input { accent-color: #294bda; width: 18px; height: 18px; }
.portal-account .auth-result { color: #8f2b22; min-height: 1.25em; margin-bottom: 0; }
.portal-account .auth-result.ok { color: #187559; }
.saved-seats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.saved-seats a { min-height: 42px; color: #2842ab; text-decoration: none; }
@media (max-width: 760px) {
  .portal-top { min-height: 72px; }
  .portal-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .portal-content { padding: 18px 0 0; }
  .portal-content h1 { font-size: clamp(2.5rem, 9.6vw, 4.5rem); }
  .portal-content p { margin-top: 15px; }
  .portal-actions { margin-top: 21px; }
  .portal-content .portal-supported { margin-top: 12px; }
  .portal-visual { min-height: clamp(270px, 42vh, 400px); border-radius: 20px; }
  .portal-greeting { bottom: 51px; }
  .portal-greeting span { font-size: clamp(2.75rem, 13vw, 5.5rem); }
  .portal-gallery { bottom: 7px; }
  .portal.account-open .portal-visual { display: none; }
  .portal-account h1 { font-size: clamp(2.15rem, 8vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .portal-photo { transition: none; }
  .portal-greeting .greeting-in { animation: none; }
  .portal-gallery .gallery-pause { display: none; }
  .pin-line.sealing #pin-slots span { animation: none; }
}
