@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@700;800;900&family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,700&display=swap');

:root{
  --portal-auth-dark:#0a2f2c;
  --portal-auth-dark-2:#061a18;
  --portal-auth-teal:#167f75;
  --portal-auth-green:#35b46a;
  --portal-auth-accent:#f6cd48;
  --portal-auth-accent-2:#f9dc76;
  --portal-auth-bg:#f4f4ef;
  --portal-auth-bg-soft:#eeeee6;
  --portal-auth-surface:#ffffff;
  --portal-auth-text:#0a2f2c;
  --portal-auth-muted:#67716b;
  --portal-auth-line:rgba(10,47,44,.11);
  --portal-auth-line-strong:rgba(10,47,44,.16);
  --portal-auth-shadow-soft:0 20px 46px rgba(10,47,44,.08);
  --portal-auth-shadow-card:0 28px 80px rgba(10,47,44,.12);
  --portal-auth-radius-sm:16px;
  --portal-auth-radius-md:22px;
  --portal-auth-radius-lg:30px;
  --portal-auth-radius-xl:36px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.portal-auth-body{
  margin:0;
  min-height:100vh;
  font-family:'Outfit',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--portal-auth-text);
  background:
    radial-gradient(circle at top left, rgba(246,205,72,.20), transparent 28%),
    radial-gradient(circle at bottom right, rgba(22,127,117,.12), transparent 26%),
    linear-gradient(180deg,#f8f8f3 0%, var(--portal-auth-bg) 52%, #ecece4 100%);
}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}

:where(a,button,input,select,textarea):focus-visible{
  outline:3px solid rgba(246,205,72,.48);
  outline-offset:2px;
  box-shadow:0 0 0 6px rgba(10,47,44,.08);
}

.portal-auth-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
  gap:28px;
  padding:26px;
}

.portal-auth-brand-panel,
.portal-auth-card,
.portal-auth-card-shell,
.portal-auth-panel__metrics article,
.portal-auth-panel__badges span,
.partner-guest-inline-note{
  min-width:0;
}

.portal-auth-brand-panel{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:28px;
  padding:34px;
  border-radius:var(--portal-auth-radius-xl);
  color:#fff;
  background:linear-gradient(165deg,var(--portal-auth-dark-2) 0%, var(--portal-auth-dark) 34%, #0f5f57 68%, var(--portal-auth-teal) 100%);
  box-shadow:var(--portal-auth-shadow-card);
}

.portal-auth-brand-panel::before,
.portal-auth-brand-panel::after{
  content:"";
  position:absolute;
  border-radius:999px;
  pointer-events:none;
}

.portal-auth-brand-panel::before{
  inset:auto -120px -130px auto;
  width:320px;
  height:320px;
  background:radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 65%);
}

.portal-auth-brand-panel::after{
  inset:-120px auto auto -80px;
  width:260px;
  height:260px;
  background:radial-gradient(circle, rgba(246,205,72,.20), rgba(246,205,72,0) 70%);
}

.portal-auth-panel__topbar,
.portal-auth-brand-copy,
.portal-auth-panel__metrics{
  position:relative;
  z-index:1;
}

.portal-auth-panel__topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.portal-auth-brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  color:#fff;
}

.portal-auth-brand__mark{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--portal-auth-accent),#fff1b9);
  color:var(--portal-auth-dark);
  font-family:'Barlow','Outfit',sans-serif;
  font-size:1.3rem;
  font-weight:800;
  box-shadow:0 16px 34px rgba(6,26,24,.18);
}

.portal-auth-brand strong,
.portal-auth-head h2,
.portal-auth-panel__metrics strong,
.portal-auth-bridge strong,
.portal-auth-card-topline span,
.partner-guest-inline-note strong{
  font-family:'Barlow','Outfit',sans-serif;
}

.portal-auth-brand strong{
  display:block;
  font-size:1.16rem;
  letter-spacing:-.02em;
}

.portal-auth-brand small{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.70);
  font-size:.74rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.portal-auth-panel__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.portal-auth-panel__links a{
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.84);
  font-size:.82rem;
  font-weight:700;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease,color .18s ease;
}
.portal-auth-panel__links a:hover{background:rgba(255,255,255,.16);color:#fff;transform:translateY(-1px)}

.portal-auth-kicker,
.portal-auth-overline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:28px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(246,205,72,.18);
  background:rgba(246,205,72,.10);
  color:var(--portal-auth-accent);
  font-size:.70rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.portal-auth-brand-copy{
  max-width:560px;
}

.portal-auth-brand-copy h1{
  margin:16px 0 18px;
  font-family:'Barlow','Outfit',sans-serif;
  font-size:clamp(2.2rem,3.7vw,4.1rem);
  line-height:.94;
  letter-spacing:-.05em;
  max-width:10ch;
  text-wrap:balance;
}

.portal-auth-brand-copy p{
  margin:0 0 22px;
  max-width:45ch;
  color:rgba(255,255,255,.84);
  font-size:1rem;
  line-height:1.8;
}

.portal-auth-panel__badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px;
}

.portal-auth-panel__badges span{
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.84);
  font-size:.80rem;
  font-weight:700;
}

.portal-auth-feature-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
  max-width:500px;
}

.portal-auth-feature-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:rgba(255,255,255,.92);
  font-size:.97rem;
  line-height:1.6;
}

.portal-auth-feature-list i{color:#c8f5d5;transform:translateY(2px)}

.portal-auth-panel__metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.portal-auth-panel__metrics article{
  padding:16px 18px;
  border-radius:22px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(12px);
}

.portal-auth-panel__metrics strong{
  display:block;
  margin-bottom:6px;
  color:#fff;
  font-size:1.16rem;
  letter-spacing:-.03em;
}

.portal-auth-panel__metrics small{
  display:block;
  color:rgba(255,255,255,.66);
  font-size:.76rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.portal-auth-card-wrap{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.portal-auth-card-shell{
  padding:16px;
  border-radius:34px;
  background:linear-gradient(180deg, rgba(255,255,255,.54), rgba(255,255,255,.22));
  border:1px solid rgba(255,255,255,.44);
  box-shadow:var(--portal-auth-shadow-soft);
  backdrop-filter:blur(14px);
}

.portal-auth-card-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:4px 10px 14px;
}

.portal-auth-card-topline span{
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(22,127,117,.08);
  border:1px solid rgba(22,127,117,.12);
  color:var(--portal-auth-teal);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.portal-auth-card-topline a{
  color:var(--portal-auth-text);
  font-size:.88rem;
  font-weight:700;
}

.portal-auth-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.78);
  border-radius:30px;
  padding:34px;
  box-shadow:0 26px 70px rgba(10,47,44,.08);
}

.portal-auth-head h2{
  margin:10px 0 10px;
  font-size:2rem;
  line-height:.96;
  letter-spacing:-.04em;
}

.portal-auth-head p{
  margin:0;
  color:var(--portal-auth-muted);
  line-height:1.8;
  font-size:.99rem;
}

.portal-auth-head__chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 0;
}

.portal-auth-head__chips span{
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,47,44,.05);
  border:1px solid var(--portal-auth-line);
  color:var(--portal-auth-muted);
  font-size:.76rem;
  font-weight:700;
}

.portal-auth-form{display:grid;gap:16px;margin-top:24px}
.portal-auth-form--grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-auth-col-2{grid-column:span 2}

.portal-auth-form label{display:grid;gap:8px}
.portal-auth-form span{font-weight:600;font-size:.94rem;color:var(--portal-auth-text)}
.portal-auth-form span small{font-weight:600;color:var(--portal-auth-muted)}

.portal-auth-form input,
.portal-auth-form select,
.portal-auth-form textarea{
  width:100%;
  border:1px solid var(--portal-auth-line);
  background:#fff;
  color:var(--portal-auth-text);
  border-radius:18px;
  padding:14px 15px;
  font-size:1rem;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease,transform .18s ease;
}

.portal-auth-form textarea{resize:vertical;min-height:120px}

.portal-auth-form input:focus,
.portal-auth-form select:focus,
.portal-auth-form textarea:focus,
.portal-auth-input.is-focused{
  border-color:rgba(22,127,117,.32);
  box-shadow:0 0 0 5px rgba(22,127,117,.10);
}

.portal-auth-input{
  position:relative;
  display:flex;
  align-items:center;
  border:1px solid var(--portal-auth-line);
  border-radius:18px;
  background:#fff;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.portal-auth-input input{
  border:0;
  box-shadow:none!important;
  background:transparent;
  padding-right:52px;
}

.portal-auth-input__toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border:0;
  border-radius:12px;
  background:rgba(10,47,44,.05);
  color:var(--portal-auth-muted);
  display:grid;
  place-items:center;
}
.portal-auth-input__toggle:hover{background:rgba(10,47,44,.08);color:var(--portal-auth-text)}

.portal-auth-row{display:flex;justify-content:flex-end}
.portal-auth-row a,
.portal-auth-footer a,
.portal-auth-legal-links a,
.portal-check a,
.portal-auth-card-topline a{
  color:var(--portal-auth-teal);
  font-weight:700;
}

.portal-auth-submit{
  min-height:54px;
  border:0;
  border-radius:18px;
  padding:0 18px;
  background:var(--portal-auth-dark);
  color:var(--portal-auth-accent);
  font-weight:800;
  letter-spacing:-.01em;
  box-shadow:0 18px 40px rgba(10,47,44,.16);
  transition:transform .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.portal-auth-submit:hover{transform:translateY(-1px);background:#0d3a36;color:#ffe178}

.portal-check{
  display:flex!important;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  border-radius:20px;
  border:1px solid var(--portal-auth-line);
  background:linear-gradient(180deg,#ffffff 0%, #fafaf6 100%);
}
.portal-check input{width:auto;transform:translateY(4px)}
.portal-check span{font-weight:500;line-height:1.6;color:var(--portal-auth-muted)}
.portal-check--legal span{font-weight:600;color:#516071}

.portal-auth-bridge,
.partner-guest-inline-note{
  margin-top:18px;
  padding:18px 20px;
  border-radius:22px;
  background:linear-gradient(180deg,#fafaf6 0%, #f1f3ec 100%);
  border:1px solid rgba(10,47,44,.08);
}
.portal-auth-bridge strong,
.partner-guest-inline-note strong{display:block;margin-bottom:6px;font-size:1.02rem;letter-spacing:-.02em}
.portal-auth-bridge p,
.partner-guest-inline-note p{margin:0;color:var(--portal-auth-muted);line-height:1.7}

.portal-auth-footer,
.portal-auth-legal-links{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
  color:var(--portal-auth-muted);
  text-align:center;
}

.portal-auth-legal-links{font-size:.86rem}

.partner-portal-guest-body .portal-auth-brand__mark{
  background:linear-gradient(135deg,#49c381,#cbf27c);
}

.partner-guest-panel{
  background:linear-gradient(165deg,#082f2d 0%, #0e4f47 35%, #0f6958 66%, #1a8f73 100%);
}

@media (max-width: 1200px){
  .portal-auth-shell{grid-template-columns:1fr;padding:20px}
  .portal-auth-brand-panel{min-height:380px}
}

@media (max-width: 820px){
  .portal-auth-brand-panel,
  .portal-auth-card{padding:24px}
  .portal-auth-card-shell{padding:12px}
  .portal-auth-panel__metrics{grid-template-columns:1fr}
  .portal-auth-form--grid{grid-template-columns:1fr}
  .portal-auth-col-2{grid-column:auto}
  .portal-auth-brand-copy h1{font-size:clamp(1.9rem,7vw,2.8rem);max-width:12ch}
}

@media (max-width: 580px){
  .portal-auth-shell{padding:14px;gap:16px}
  .portal-auth-brand-panel{padding:20px;border-radius:28px;min-height:0}
  .portal-auth-brand{gap:12px}
  .portal-auth-brand__mark{width:48px;height:48px;border-radius:16px;font-size:1.16rem}
  .portal-auth-card{padding:22px;border-radius:24px}
  .portal-auth-card-topline{padding:0 6px 12px}
  .portal-auth-head h2{font-size:1.74rem}
  .portal-auth-panel__links,
  .portal-auth-panel__badges,
  .portal-auth-head__chips,
  .portal-auth-footer,
  .portal-auth-legal-links{justify-content:flex-start}
  .portal-auth-card-topline{align-items:flex-start}
}


.portal-auth-bridge__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.portal-auth-bridge__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:999px;background:rgba(10,47,44,.06);border:1px solid var(--portal-auth-line);font-weight:700;color:var(--portal-auth-text)}
.portal-auth-bridge__actions a:hover{background:#fff;transform:translateY(-1px)}
.portal-legal-body{background:linear-gradient(180deg,#f8f8f3 0%, var(--portal-auth-bg) 45%, #e8eee9 100%)}
.portal-legal-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:24px;padding:24px}
.portal-legal-side,.portal-legal-card{min-width:0}
.portal-legal-side{display:flex;flex-direction:column;justify-content:space-between;gap:24px;padding:30px;border-radius:var(--portal-auth-radius-xl);background:linear-gradient(165deg,var(--portal-auth-dark-2) 0%, var(--portal-auth-dark) 34%, #0f5f57 68%, var(--portal-auth-teal) 100%);color:#fff;box-shadow:var(--portal-auth-shadow-card)}
.portal-legal-copy h1{margin:16px 0 14px;font-family:'Barlow','Outfit',sans-serif;font-size:clamp(2rem,3vw,3.5rem);line-height:.94;letter-spacing:-.05em;max-width:11ch}
.portal-legal-copy p,.portal-legal-bridge p{margin:0;color:rgba(255,255,255,.84);line-height:1.8}
.portal-legal-bridge{padding:20px;border-radius:24px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14)}
.portal-legal-bridge strong{display:block;margin-bottom:8px;font-family:'Barlow','Outfit',sans-serif;font-size:1.05rem}
.portal-legal-bridge__links{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.portal-legal-bridge__links a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);font-weight:700;color:#fff}
.portal-legal-card{padding:28px;border-radius:var(--portal-auth-radius-xl);background:rgba(255,255,255,.86);backdrop-filter:blur(12px);border:1px solid var(--portal-auth-line);box-shadow:var(--portal-auth-shadow-card)}
.portal-legal-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.portal-legal-card__top h2{margin:12px 0 0;font-family:'Barlow','Outfit',sans-serif;font-size:clamp(1.6rem,2vw,2.3rem);letter-spacing:-.03em}
.portal-legal-version{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:var(--portal-auth-bg-soft);font-size:.82rem;font-weight:700;color:var(--portal-auth-muted)}
.portal-legal-inline-note{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:flex-start;padding:18px 20px;border-radius:24px;background:#f9fbfa;border:1px solid var(--portal-auth-line);margin-bottom:20px}
.portal-legal-inline-note i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(22,127,117,.09);color:var(--portal-auth-teal);font-size:1.05rem}
.portal-legal-inline-note strong{display:block;margin-bottom:4px;font-family:'Barlow','Outfit',sans-serif}
.portal-legal-inline-note p{margin:0;color:var(--portal-auth-muted);line-height:1.7}
.portal-legal-content{display:grid;gap:16px}
.portal-legal-section{padding:20px 22px;border-radius:24px;background:#fff;border:1px solid var(--portal-auth-line)}
.portal-legal-section h3{margin:0 0 10px;font-family:'Barlow','Outfit',sans-serif;font-size:1.08rem;letter-spacing:-.02em}
.portal-legal-section p{margin:0;color:var(--portal-auth-muted);line-height:1.8}
.portal-legal-section p + p{margin-top:10px}
.portal-legal-section ul{margin:10px 0 0;padding-left:18px;color:var(--portal-auth-muted);display:grid;gap:8px}
.portal-legal-footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px;font-size:.92rem;color:var(--portal-auth-muted)}
.portal-legal-footer a{font-weight:700;color:var(--portal-auth-teal)}
@media (max-width: 980px){.portal-legal-shell{grid-template-columns:1fr;padding:18px}.portal-legal-side,.portal-legal-card{padding:22px}.portal-legal-card__top{flex-direction:column}.portal-legal-version{align-self:flex-start}}
@media (max-width: 640px){.portal-auth-bridge__actions,.portal-legal-bridge__links{flex-direction:column}.portal-auth-bridge__actions a,.portal-legal-bridge__links a{width:100%}}
