@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

body.portal-auth-page { margin: 0; padding: 0; min-height: 100vh; background: #e9e7e7; color: #242025; font-family: 'DM Sans', Arial, sans-serif; }
.portal-auth-page .portal-main { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.portal-auth-page .portal-main > .error { position: absolute; z-index: 3; top: 1.5rem; right: 2rem; width: min(420px, calc(100vw - 3rem)); border-radius: 12px; box-shadow: 0 12px 40px #27142625; }
.portal-auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.portal-auth-brand { position: relative; overflow: hidden; min-height: 680px; display: flex; flex-direction: column; padding: clamp(2.5rem, 5vw, 5.5rem); background: #181319; color: #fff; isolation: isolate; }
.portal-auth-brand::before { content: ''; position: absolute; z-index: -1; width: 47vw; aspect-ratio: 1; min-width: 520px; right: -14vw; bottom: -28vw; border: 1px solid #ba83d749; border-radius: 50%; box-shadow: 0 0 0 8vw #8b4db30b, 0 0 0 16vw #8b4db30b, 0 0 0 24vw #8b4db308; }
.portal-auth-brand::after { content: ''; position: absolute; z-index: -1; width: 400px; height: 400px; right: -130px; bottom: -150px; background: #8950a4; filter: blur(145px); opacity: .33; }
.portal-auth-logo { width: min(250px, 62%); max-height: 100px; object-fit: contain; object-position: left center; }
.portal-auth-brand-copy { max-width: 620px; margin-block: auto; padding: 3rem 0; }
.portal-auth-eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.portal-auth-eyebrow { color: #d7a4ec; margin-bottom: 1.75rem; }
.portal-auth-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.portal-auth-brand h1 { margin: 0; font: 800 clamp(3.2rem, 5.2vw, 6.6rem)/1.07 'Manrope', Arial, sans-serif; letter-spacing: -.06em; }
.portal-auth-brand h1 em { font-style: normal; color: #c58add; }
.portal-auth-panel { display: flex; align-items: center; justify-content: center; padding: 3rem clamp(2rem, 5vw, 6rem); background: #f7f5f4; }
.portal-auth-panel-inner { width: 100%; max-width: 430px; }
.portal-auth-panel h2 { margin: 0 0 .75rem; font: 800 clamp(2.4rem, 3.2vw, 3.5rem)/1.12 'Manrope', Arial, sans-serif; letter-spacing: -.055em; }
.portal-auth-intro { margin: 0 0 2.8rem; color: #6f6870; font-size: 1rem; line-height: 1.65; }
.portal-auth-form { display: flex; flex-direction: column; gap: .55rem; }
.portal-auth-form label { margin-top: .75rem; font-size: .87rem; font-weight: 700; color: #322c33; }
.portal-auth-form input { box-sizing: border-box; width: 100%; height: 54px; padding: 0 1rem; border: 1px solid #dcd5de; border-radius: 8px; background: #fff; color: #2b252d; font: 500 1rem 'DM Sans', Arial, sans-serif; box-shadow: none; }
.portal-auth-form input::placeholder { color: #aea4af; }
.portal-auth-form input:focus-visible { outline: 3px solid #cba7dc; outline-offset: 2px; border-color: #78498c; }
.portal-auth-form input[name="otp"] { font-size: 1.6rem; letter-spacing: .45em; font-weight: 700; text-align: center; }
.portal-auth-submit { width: 100%; min-height: 56px; margin-top: 1.25rem; display: flex; align-items: center; justify-content: center; padding: 0 1.25rem; border: 0; border-radius: 8px; background: #81509b; color: #fff; font: 700 1rem 'DM Sans', Arial, sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.portal-auth-submit:hover { background: #673d80; transform: translateY(-2px); }
.portal-auth-submit:focus-visible, .portal-auth-actions button:focus-visible { outline: 3px solid #9a65ae; outline-offset: 3px; }
.portal-auth-trust { margin: 1.5rem 0 0; color: #716974; font-size: .86rem; line-height: 1.5; }
.portal-auth-notice { padding: .8rem 1rem; background: #eee5f2; border: 1px solid #ddc9e7; border-radius: 6px; color: #4b3157; }
.portal-auth-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.portal-auth-actions button { padding: 0; background: none; border: 0; color: #75458b; font: 700 .88rem 'DM Sans', Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 880px) { .portal-auth-shell { grid-template-columns: 1fr; } .portal-auth-brand { min-height: auto; padding: 2rem 2rem 2.5rem; gap: 3rem; } .portal-auth-brand-copy { margin: 0; padding: 0; } .portal-auth-brand h1 { font-size: clamp(2.65rem, 7vw, 4rem); } .portal-auth-panel { padding: 3.5rem 2rem; } .portal-auth-panel-inner { max-width: 570px; } }
@media (max-width: 520px) { .portal-auth-brand { padding: 1.5rem; gap: 2.5rem; } .portal-auth-brand h1 { font-size: 2.5rem; } .portal-auth-logo { width: 200px; } .portal-auth-panel { padding: 2.75rem 1.5rem; } .portal-auth-intro { margin-bottom: 1.75rem; } .portal-auth-page .portal-main > .error { position: static; width: auto; margin: 1rem; } }
@media (prefers-reduced-motion: reduce) { .portal-auth-submit { transition: none; } .portal-auth-submit:hover { transform: none; } }
