:root{
  --dark:#07111f;
  --dark2:#0d1728;
  --blue:#2563eb;
  --green:#16a34a;
  --soft:#f5f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --shadow:0 24px 70px rgba(15,23,42,.12);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;background:linear-gradient(135deg,#f8fbff,#eef6ff 45%,#f8fafc);color:var(--text);min-height:100vh;overflow-x:hidden}
a{text-decoration:none;color:inherit}button,input{font-family:inherit}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:28px;position:relative;isolation:isolate}
.auth-page::before,.auth-page::after{content:"";position:absolute;border-radius:999px;filter:blur(12px);z-index:-1;pointer-events:none;animation:authFloat 8s ease-in-out infinite}
.auth-page::before{width:430px;height:430px;left:-170px;top:8%;background:radial-gradient(circle,rgba(37,99,235,.20),transparent 66%)}
.auth-page::after{width:360px;height:360px;right:-130px;bottom:6%;background:radial-gradient(circle,rgba(22,163,74,.18),transparent 64%);animation-delay:1.2s}
.auth-shell{width:min(1080px,100%);display:grid;grid-template-columns:.92fr 1.08fr;gap:22px;align-items:stretch}
.auth-brand-panel,.auth-card{border:1px solid rgba(226,232,240,.86);box-shadow:var(--shadow);border-radius:32px;overflow:hidden}
.auth-brand-panel{position:relative;background:linear-gradient(145deg,#07111f,#0d1728 58%,#123064);color:#fff;padding:34px;display:flex;flex-direction:column;justify-content:space-between;min-height:640px}
.auth-brand-panel::before{content:"";position:absolute;inset:-80px -80px auto auto;width:260px;height:260px;border-radius:999px;background:rgba(34,197,94,.18);filter:blur(4px)}
.auth-logo{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.auth-logo-icon{width:52px;height:52px;border-radius:18px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 16px 34px rgba(0,0,0,.18)}
.auth-logo-icon img{width:100%;height:100%;object-fit:contain}.auth-logo strong{display:block;font-size:23px;letter-spacing:-.03em}.auth-logo small{display:block;color:#cbd5e1;font-weight:800;font-size:12px}
.auth-brand-copy{position:relative;z-index:1;margin:42px 0}.auth-brand-copy span{display:inline-flex;padding:9px 12px;border-radius:999px;background:rgba(236,253,245,.10);border:1px solid rgba(187,247,208,.20);color:#bbf7d0;text-transform:uppercase;letter-spacing:.1em;font-size:12px;font-weight:900;margin-bottom:16px}
.auth-brand-copy h1{font-size:clamp(34px,5vw,54px);line-height:1;letter-spacing:-.06em;margin-bottom:16px}.auth-brand-copy p{color:#dbeafe;line-height:1.72;font-size:16px;max-width:440px}
.auth-preview{position:relative;z-index:1;display:grid;gap:12px}.auth-preview-row{display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);border-radius:18px;padding:14px 16px;backdrop-filter:blur(12px);animation:authPulse 4.8s ease-in-out infinite}.auth-preview-row:nth-child(2){animation-delay:.6s}.auth-preview-row:nth-child(3){animation-delay:1.2s}.auth-preview-row span{color:#cbd5e1;font-size:13px;font-weight:800}.auth-preview-row strong{font-size:15px}
.auth-card{background:rgba(255,255,255,.88);backdrop-filter:blur(20px);padding:34px;display:flex;flex-direction:column;justify-content:center;min-height:640px}
.auth-card-head{margin-bottom:22px}.auth-card-head a{display:inline-flex;align-items:center;gap:8px;color:#2563eb;font-weight:900;font-size:13px;margin-bottom:18px}.auth-card-head h2{font-size:clamp(30px,4vw,44px);letter-spacing:-.05em;line-height:1.05;margin-bottom:10px}.auth-card-head p{color:#64748b;line-height:1.6}
.auth-form{display:grid;gap:14px}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:7px}.field label{font-size:13px;font-weight:900;color:#334155}.field input{width:100%;border:1px solid var(--border);background:#fff;border-radius:16px;padding:14px 15px;font-size:15px;outline:none;transition:.22s ease;color:#0f172a}.field input:focus{border-color:rgba(37,99,235,.65);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.password-wrap{position:relative}.password-wrap input{padding-right:86px}.toggle-password{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:#f1f5f9;color:#334155;border-radius:12px;padding:8px 10px;font-weight:900;font-size:12px;cursor:pointer;transition:.2s ease}.toggle-password:hover{background:#e2e8f0}
.form-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}.check-label{display:flex;align-items:center;gap:9px;color:#475569;font-size:13px;font-weight:800}.check-label input{width:16px;height:16px;accent-color:#2563eb}.text-link{color:#2563eb;font-weight:900;font-size:13px}
.auth-button,.google-button{width:100%;border:0;border-radius:17px;padding:14px 16px;font-size:15px;font-weight:900;cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,background .22s ease}.auth-button{background:linear-gradient(135deg,#07111f,#1d4ed8 72%,#16a34a 150%);color:#fff;box-shadow:0 18px 38px rgba(37,99,235,.22);margin-top:4px}.auth-button:hover{transform:translateY(-2px);box-shadow:0 24px 48px rgba(37,99,235,.30)}
.divider{display:flex;align-items:center;gap:12px;color:#94a3b8;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin:4px 0}.divider::before,.divider::after{content:"";height:1px;background:var(--border);flex:1}.google-button{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#0f172a;border:1px solid var(--border);box-shadow:0 12px 26px rgba(15,23,42,.07)}.google-button:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(15,23,42,.10)}.google-mark{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px}.google-mark svg{width:20px;height:20px;display:block}
.auth-message{min-height:24px;border-radius:14px;padding:0 12px;color:#475569;font-size:13px;line-height:1.45}.auth-message.active{padding:11px 12px;background:#f8fafc;border:1px solid var(--border)}.auth-message.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.auth-message.success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.auth-switch{text-align:center;color:#64748b;font-size:14px;margin-top:12px}.auth-switch a{color:#2563eb;font-weight:900}.terms-copy{font-size:13px;color:#64748b;line-height:1.5}.terms-copy a,.auth-policy-link{color:#2563eb;font-weight:900}.auth-policy-link{border:0;background:transparent;padding:0;font:inherit;cursor:pointer;text-decoration:none}.auth-policy-link:hover{text-decoration:underline}
@keyframes authFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}@keyframes authPulse{0%,100%{transform:translateX(0);background:rgba(255,255,255,.08)}50%{transform:translateX(5px);background:rgba(255,255,255,.12)}}
@media(max-width:920px){.auth-shell{grid-template-columns:1fr}.auth-brand-panel{min-height:auto}.auth-card{min-height:auto}.auth-brand-copy{margin:32px 0}.auth-preview{grid-template-columns:repeat(3,1fr)}.auth-preview-row{display:grid;gap:7px}}
@media(max-width:620px){.auth-page{padding:14px}.auth-brand-panel,.auth-card{border-radius:24px;padding:22px}.auth-grid{grid-template-columns:1fr}.form-row{align-items:flex-start;flex-direction:column}.auth-preview{grid-template-columns:1fr}.auth-logo-icon{width:46px;height:46px;border-radius:15px}.auth-card-head h2{font-size:31px}.password-wrap input{padding-right:78px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


.auth-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.auth-modal.hidden{display:none}.auth-modal-backdrop{position:absolute;inset:0;background:rgba(7,17,31,.68);backdrop-filter:blur(6px)}.auth-modal-card{position:relative;width:min(860px,100%);max-height:min(760px,88vh);overflow:auto;background:#fff;border:1px solid rgba(226,232,240,.9);border-radius:28px;padding:28px;box-shadow:0 28px 90px rgba(0,0,0,.28)}.auth-modal-close{position:absolute;right:18px;top:16px;width:42px;height:42px;border:0;border-radius:14px;background:#f1f5f9;color:#07111f;font-size:24px;line-height:1;cursor:pointer;transition:.22s ease}.auth-modal-close:hover{background:#e2e8f0;transform:translateY(-1px)}.auth-modal-kicker{display:inline-block;color:#16a34a;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;margin-bottom:12px}.auth-modal-card h2{font-size:34px;letter-spacing:-.04em;margin-bottom:14px;color:#07111f}.auth-modal-body{display:grid;gap:16px;color:#475569;line-height:1.72}.auth-modal-body h3{color:#07111f;margin-top:10px}.auth-modal-body ul{padding-left:20px}.auth-modal-body .contact-card{background:#f8fafc;border:1px solid var(--border);border-radius:20px;padding:18px}body.auth-modal-open{overflow:hidden}
@media(max-width:620px){.auth-modal{padding:12px}.auth-modal-card{border-radius:22px;padding:24px 18px}.auth-modal-card h2{font-size:28px}.auth-modal-close{right:12px;top:12px}}

/* ===== FULL RESPONSIVE POLISH: Auth pages and auth modals ===== */
html,body{max-width:100%;overflow-x:hidden;}
img,svg{max-width:100%;height:auto;}
.auth-shell,.auth-brand-panel,.auth-card{min-width:0;}
.auth-card-head h2,.auth-brand-copy h1{overflow-wrap:anywhere;}
.auth-form,.field,.password-wrap{min-width:0;}
.field input{min-width:0;}
.auth-modal-card{width:min(860px,calc(100vw - 32px));}
.auth-modal-body{overflow-wrap:anywhere;}

@media(max-width:920px){
  .auth-page{align-items:start;padding:18px;}
  .auth-shell{gap:16px;}
  .auth-brand-panel,.auth-card{border-radius:26px;}
  .auth-brand-panel{padding:26px;}
  .auth-card{padding:26px;}
  .auth-brand-copy h1{font-size:clamp(30px,7vw,44px);}
}

@media(max-width:620px){
  .auth-page{display:block;padding:12px;}
  .auth-shell{display:grid;width:100%;gap:12px;}
  .auth-brand-panel{padding:18px;min-height:0;border-radius:22px;}
  .auth-card{padding:20px 16px;border-radius:22px;}
  .auth-logo{gap:10px;}
  .auth-logo-icon{width:42px;height:42px;flex:0 0 42px;}
  .auth-logo strong{font-size:18px;}
  .auth-logo small{font-size:10.5px;}
  .auth-brand-copy{margin:22px 0 16px;}
  .auth-brand-copy span{font-size:10.5px;line-height:1.35;}
  .auth-brand-copy h1{font-size:30px;line-height:1.04;letter-spacing:-.045em;}
  .auth-brand-copy p{font-size:14px;line-height:1.55;}
  .auth-preview{gap:8px;}
  .auth-preview-row{padding:11px 12px;border-radius:14px;}
  .auth-card-head{margin-bottom:16px;}
  .auth-card-head h2{font-size:29px;}
  .auth-card-head p{font-size:14px;line-height:1.55;}
  .auth-grid{grid-template-columns:1fr;gap:12px;}
  .field input{padding:13px 14px;border-radius:14px;font-size:16px;}
  .password-wrap input{padding-right:76px;}
  .toggle-password{right:7px;padding:7px 9px;}
  .form-row{gap:8px;}
  .auth-button,.google-button{min-height:48px;border-radius:15px;}
  .auth-modal{padding:10px;}
  .auth-modal-card{width:calc(100vw - 20px);max-height:86vh;padding:22px 16px;border-radius:20px;}
  .auth-modal-card h2{font-size:26px;padding-right:42px;}
}

@media(max-width:360px){
  .auth-page{padding:8px;}
  .auth-brand-panel,.auth-card{padding:16px 12px;}
  .auth-brand-copy h1,.auth-card-head h2{font-size:27px;}
  .check-label,.text-link,.terms-copy{font-size:12px;}
}

/* ===== MOBILE AUTH FORM-ONLY REFINEMENT ===== */
@media(max-width:760px){
  .auth-page{
    min-height:100dvh !important;
    padding:14px !important;
    display:block !important;
  }
  .auth-shell{
    width:100% !important;
    display:block !important;
  }
  .auth-brand-panel{
    display:none !important;
  }
  .auth-card{
    width:100% !important;
    min-height:auto !important;
    padding:22px 16px !important;
    border-radius:22px !important;
    box-shadow:0 14px 36px rgba(15,23,42,.12) !important;
  }
  .auth-card-head{
    margin-bottom:16px !important;
  }
  .auth-card-head a{
    margin-bottom:12px !important;
    font-size:12px !important;
  }
  .auth-card-head h2{
    font-size:clamp(26px,8vw,32px) !important;
    line-height:1.05 !important;
    margin-bottom:8px !important;
  }
  .auth-card-head p{
    font-size:14px !important;
    line-height:1.45 !important;
  }
  .auth-form{
    gap:11px !important;
  }
  .auth-grid{
    grid-template-columns:1fr !important;
    gap:11px !important;
  }
  .field input{
    padding:12px 13px !important;
    border-radius:14px !important;
    font-size:15px !important;
  }
  .auth-button,
  .google-button,
  
  .divider{
    margin:2px 0 !important;
  }
  .form-row{
    align-items:flex-start !important;
    gap:10px !important;
  }
}

/* Email verification placeholder flow */
.auth-message.verification-message{
  display:grid;
  gap:8px;
  text-align:left;
  line-height:1.45;
}
.auth-message.verification-message strong{
  color:#166534;
  font-size:14px;
}
.auth-message.verification-message span,
.auth-message.verification-message small{
  display:block;
}
.auth-message.verification-message small{
  color:#64748b;
  font-size:12px;
}
.verification-action{
  margin-top:4px;
  border:0;
  border-radius:13px;
  padding:11px 13px;
  background:linear-gradient(135deg,#07111f,#1d4ed8);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.verification-action:focus-visible{
  outline:3px solid rgba(37,99,235,.28);
  outline-offset:2px;
}

/* Clear email verification screen after signup */
.auth-form.hidden{display:none!important;}
.verification-panel{
  display:grid;
  gap:12px;
  border:1px solid rgba(34,197,94,.22);
  background:linear-gradient(135deg,#ecfdf5,#eff6ff);
  border-radius:28px;
  padding:28px;
  box-shadow:0 22px 58px rgba(15,23,42,.10);
  text-align:left;
}
.verification-panel.hidden{display:none!important;}
.verification-icon{
  width:62px;
  height:62px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff;
  font-size:30px;
  font-weight:900;
  box-shadow:0 18px 38px rgba(22,163,74,.24);
}
.verification-kicker{
  color:#16a34a;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.verification-panel h3{
  color:#07111f;
  font-size:clamp(28px,4vw,40px);
  line-height:1.05;
  letter-spacing:-.045em;
}
.verification-panel p{
  color:#475569;
  line-height:1.6;
  font-size:15px;
}
.verification-email{
  display:block;
  width:100%;
  overflow-wrap:anywhere;
  padding:14px 16px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(37,99,235,.18);
  color:#07111f;
  font-size:17px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.verification-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px;}
.verification-login-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:13px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,#07111f,#1d4ed8);
  color:#fff;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 18px 38px rgba(37,99,235,.22);
}
.verification-panel small{color:#64748b;line-height:1.5;}
@media(max-width:620px){.verification-panel{padding:22px 18px;border-radius:22px}.verification-icon{width:54px;height:54px;border-radius:18px}.verification-email{font-size:15px}}
