/* MyBouncer sign-in pages: Log in, Sign up (client and professional), Forgot password.
   Loaded after ui.css. Palette for these pages: #0082FB primary, #0064E0 deep, #F1F5F8 light grey, #1C2B33 charcoal. */
:root{--a-blue:#276EF1;--a-deep:#1A56C4;--a-grey:#F1F5F8;--a-ink:#1C2B33;--a-line:#E1E8ED;--a-err:#C01F2F;--a-ok:#1F7A4D}
html,html body{background:var(--a-grey)!important}
body{font-family:'Inter',system-ui,sans-serif!important;color:var(--a-ink)!important;position:relative;overflow-x:hidden}
/* soft circles */
body::before,body::after{content:"";position:fixed;z-index:0;border-radius:50%;pointer-events:none}
body::before{width:520px;height:520px;left:-170px;top:-190px;background:radial-gradient(circle at 35% 35%,rgba(39,110,241,.16),rgba(39,110,241,.04) 70%,transparent 72%)}
body::after{width:440px;height:440px;right:-140px;bottom:-170px;background:radial-gradient(circle at 60% 40%,rgba(26,86,196,.14),rgba(26,86,196,.03) 70%,transparent 72%)}
html body>main.page{position:relative;z-index:1;display:grid!important;grid-template-columns:1fr!important;place-items:center;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:100vh!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
html body .page>.hero{display:none!important}
html body .page>.panel{width:100%;background:transparent!important;padding:36px 16px!important;display:flex;justify-content:center}
html body .page>.panel .wrap{width:100%;max-width:440px!important;background:#fff!important;border:0!important;border-radius:20px!important;padding:40px 36px 34px!important;box-shadow:0 1px 2px rgba(28,43,51,.04),0 24px 60px -24px rgba(28,43,51,.22)!important}
.auth-logo{display:flex;justify-content:center;margin-bottom:26px}
.auth-logo img{height:34px;width:auto}
html body .page>.panel .wrap :is(h1,h2){font-family:'Inter',system-ui,sans-serif!important;font-size:28px;font-weight:700!important;letter-spacing:-.025em;color:var(--a-ink)!important;text-align:center;line-height:1.2}
html body .page .lead{text-align:center;margin-top:8px;font-size:14.5px;color:rgba(28,43,51,.68)!important;font-weight:400}
.role-chip{display:block;width:max-content;margin:0 auto 12px;padding:5px 12px;border-radius:999px;background:rgba(39,110,241,.1);color:var(--a-deep);font-size:12px;font-weight:600}
html body .page .icon{margin-left:auto;margin-right:auto;background:rgba(39,110,241,.1)!important;color:var(--a-deep)!important}
html body .page .back{display:inline-flex;align-items:center;gap:6px;background:none!important;padding:0!important;margin-bottom:16px;font-size:13px;font-weight:600;color:var(--a-deep)!important;border:0}
html body .page .back:hover{background:none!important;color:var(--a-blue)!important;text-decoration:underline}
html body .page label{font-size:13px;font-weight:600;color:var(--a-ink)}
html body .page form{gap:16px}
html body .page input[type=text],html body .page input[type=password],html body .page input[type=email],html body .page input[type=tel],html body .page select{
  height:48px;border-radius:12px;background:var(--a-grey)!important;border:1.5px solid var(--a-line)!important;color:var(--a-ink)!important;font-family:inherit;font-size:15px;font-weight:500;transition:border-color .15s,box-shadow .15s,background .15s}
html body .page input::placeholder{color:rgba(28,43,51,.66)}
html body .page input[type=text]:focus,html body .page input[type=password]:focus,html body .page input[type=email]:focus,html body .page input[type=tel]:focus,html body .page select:focus{
  background:#fff!important;border-color:var(--a-blue)!important;box-shadow:0 0 0 4px rgba(39,110,241,.14)!important;outline:0}
html body .page .field.invalid input{border-color:var(--a-err)!important;background:#fff!important}
html body .page .error{color:var(--a-err);font-size:12px;font-weight:500}
html body .page .phone .cc{height:48px;border-radius:12px;background:var(--a-grey)!important;border:1.5px solid var(--a-line)!important;color:var(--a-ink)}
html body .page .pw button{color:var(--a-deep);font-weight:600;font-size:13px;height:36px;top:6px;border-radius:8px}
html body .page .pw button:hover{background:rgba(39,110,241,.08);color:var(--a-deep)}
html body .page .tabs{background:var(--a-grey)!important;border-radius:12px!important;padding:4px!important}
html body .page .tabs button{border-radius:9px!important;color:rgba(28,43,51,.65);font-weight:600}
html body .page .tabs button[aria-selected="true"]{background:#fff!important;color:var(--a-deep)!important;box-shadow:0 2px 8px rgba(28,43,51,.1)}
html body .page .submit,html body .page a.submit{
  height:50px;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,var(--a-blue),var(--a-deep))!important;color:#fff!important;font-family:inherit;font-size:15px;font-weight:600;
  box-shadow:0 12px 24px -10px rgba(10,11,13,.28)!important;transition:transform .15s,box-shadow .15s,filter .15s;display:flex;align-items:center;justify-content:center;gap:8px}
html body .page .submit:hover:not(:disabled){transform:translateY(-1px);filter:brightness(.94);box-shadow:0 16px 28px -10px rgba(10,11,13,.28)!important}
html body .page .submit:disabled{opacity:.7;cursor:progress;transform:none}
html body .page .submit svg{color:#fff!important}
html body .page .form-error{border-radius:12px;background:#FCE9EB;color:var(--a-err);font-weight:500;font-size:13px}
html body .page .done{border-radius:14px;background:rgba(39,110,241,.06);border:1px solid rgba(39,110,241,.2);color:var(--a-ink)}
html body .page a{text-decoration-color:rgba(26,86,196,.4)}
html body .page .alt a,html body .page .login a,html body .page .meta a,html body .page .check a{color:var(--a-deep)!important;font-weight:600}
html body .page .alt,html body .page .login{color:rgba(28,43,51,.68)!important}
html body .page .remember,html body .page .check{color:rgba(28,43,51,.75)!important}
html body .page input[type=checkbox]{accent-color:var(--a-deep)}
html body .page .otp input{background:var(--a-grey)!important;border:1.5px solid var(--a-line)!important;border-radius:12px;color:var(--a-ink)}
html body .page .otp input:focus{border-color:var(--a-blue)!important;background:#fff!important}
/* password strength */
.pw-meter{margin-top:8px;display:grid;gap:6px}
.pw-meter .bars{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.pw-meter .bars i{height:5px;border-radius:4px;background:var(--a-line);transition:background .2s}
.pw-meter[data-s="1"] .bars i:nth-child(-n+1){background:var(--a-err)}
.pw-meter[data-s="2"] .bars i:nth-child(-n+2){background:#93B6F7}
.pw-meter[data-s="3"] .bars i:nth-child(-n+3){background:var(--a-blue)}
.pw-meter[data-s="4"] .bars i{background:var(--a-deep)}
.pw-meter .txt{display:flex;justify-content:space-between;font-size:12px;color:rgba(28,43,51,.74)}
.pw-meter .txt b{font-weight:600;color:var(--a-ink)}
.pw-meter .hint.ok{color:var(--a-ok)}
.match{font-size:12px;font-weight:500;margin-top:2px}
.match.ok{color:var(--a-ok)}.match.no{color:var(--a-err)}
@media (max-width:480px){
  html body .page>.panel{padding:20px 14px 32px!important;align-items:flex-start}
  html body .page>.panel .wrap{padding:30px 22px 26px!important;border-radius:18px!important}
  html body .page>.panel .wrap :is(h1,h2){font-size:25px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* keep the sign-up form compact and single column on every screen (beats the wide-screen grid in ui.css) */
html body #signup,html body main.page #signup{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
html body main.page:has(#signup){grid-template-columns:minmax(0,1fr)!important}
html body #signup>*{grid-column:auto!important}
html body .page>.panel .wrap:has(#signup){max-width:440px!important;padding:40px 36px 34px!important}
html body #signup .field,html body #signup .field:has(#password){order:0!important;margin:0!important;gap:6px!important}
html body #signup label{font-size:13px!important}
html body #signup input:not([type=checkbox]):not([type=radio]),html body #signup select{min-height:48px!important;padding-top:0!important;padding-bottom:0!important}
html body #signup .submit{min-height:50px!important}
html body .wrap:has(#signup) :is(h1,h2){font-size:28px!important;line-height:1.2!important}
html body .wrap:has(#signup) .lead{margin-top:8px!important;margin-bottom:6px!important}
html body .wrap:has(#signup) .back{padding:0!important;margin-bottom:16px!important}
@media (max-width:480px){html body .page>.panel .wrap:has(#signup){padding:30px 22px 26px!important}html body .wrap:has(#signup) :is(h1,h2){font-size:25px!important}}

/* the page title is the h1 inside the card (the side panel is hidden on these pages) */
html body .page>.panel .wrap h1{margin:0;font-size:28px;line-height:1.2}

/* ---------- fit the whole card inside the browser window on laptops and desktops ---------- */
/* shorter screens (most laptops): tighter spacing, same look */
@media (min-width:600px) and (max-height:900px){
  html body .page>.panel{padding:20px 16px!important}
  html body .page>.panel .wrap,html body .page>.panel .wrap:has(#signup){padding:28px 34px 24px!important}
  html body .page .auth-logo{margin-bottom:16px}
  html body .page .auth-logo img{height:28px}
  html body .page .card-ic3d{width:44px;height:44px;margin:0 auto 8px}
  html body .page>.panel .wrap :is(h1,h2),html body .wrap:has(#signup) :is(h1,h2){font-size:24px!important}
  html body .page .lead,html body .wrap:has(#signup) .lead{margin-top:4px!important;font-size:14px}
  html body .page form,html body #signup,html body main.page #signup{gap:12px!important}
  html body .page .field{gap:5px!important}
  html body .page input[type=text],html body .page input[type=password],html body .page input[type=email],html body .page input[type=tel],html body .page select,html body .page .phone .cc,
  html body #signup input:not([type=checkbox]):not([type=radio]){height:44px;min-height:44px!important}
  html body .page .pw button{height:32px;top:6px}
  html body .page .submit,html body .page a.submit,html body #signup .submit{height:46px;min-height:46px!important}
  html body .page .back,html body .wrap:has(#signup) .back{margin-bottom:8px!important}
  html body .page .role-chip{margin-bottom:8px}
  html body .page .tabs button{min-height:36px}
  html body .page .pw-meter{margin-top:6px;gap:4px}
  html body .page .choice{margin-top:18px!important;gap:10px!important}
  html body .page .choice a{padding:12px 14px!important}
  html body .page .login,html body .page .alt{margin-top:14px!important}
  /* "Back" sits on the logo row instead of taking its own line */
  html body .page>.panel .wrap{position:relative}
  html body .page>.panel .wrap>a.back{position:absolute!important;top:30px;left:30px;margin:0!important}
}
/* very short windows: the decorative icon steps aside */
@media (min-width:600px) and (max-height:700px){
  html body .page .card-ic3d{display:none!important}
  html body .page .auth-logo{margin-bottom:12px}
  html body .page>.panel .wrap :is(h1,h2),html body .wrap:has(#signup) :is(h1,h2){font-size:22px!important}
  html body .page input[type=text],html body .page input[type=password],html body .page input[type=email],html body .page input[type=tel],html body .page select,html body .page .phone .cc,
  html body #signup input:not([type=checkbox]):not([type=radio]){height:42px;min-height:42px!important}
  html body .page>.panel{padding:12px 16px!important}
  html body .page>.panel .wrap,html body .page>.panel .wrap:has(#signup){padding:22px 30px 20px!important}
  html body .page>.panel .wrap>a.back{top:22px;left:26px}
  html body .page form,html body #signup,html body main.page #signup{gap:10px!important}
  html body .page .submit,html body .page a.submit,html body #signup .submit{height:44px;min-height:44px!important}
}
/* sign-up on wide screens: fields sit in two columns so the form fits without scrolling */
@media (min-width:860px){
  html body .page>.panel .wrap:has(#signup){max-width:720px!important}
  html body main.page #signup{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:18px!important;align-items:start}
  html body main.page #signup>*{grid-column:1/-1!important}
  html body main.page #signup>:is(.field:has(#name),.row,.field:has(#email),.field:has(#refcode),.field:has(#password),.field:has(#password2)){grid-column:auto!important}
  html body main.page #signup>.row{display:block}
}
@media (min-width:600px) and (max-height:800px){
  html body .page>.panel{padding:12px 16px!important}
  html body .page>.panel .wrap,html body .page>.panel .wrap:has(#signup){padding-top:22px!important;padding-bottom:20px!important}
  html body .page>.panel .wrap>a.back{top:22px}
}
