
/* Full redesign auth UI */
.kas-auth-shell{--kas-bg:#f4f7ff;--kas-card:#fff;--kas-line:#dbe3f4;--kas-text:#0f172a;--kas-muted:#64748b;--kas-accent:#4f46e5;--kas-cyan:#06b6d4;max-width:1280px;margin:28px auto;border-radius:34px;overflow:hidden;background:radial-gradient(circle at 0% 0%,rgba(255,255,255,.22),transparent 28%),linear-gradient(135deg,#1d4ed8,#4338ca 55%,#0ea5e9);box-shadow:0 32px 90px rgba(37,99,235,.18)}
.kas-auth-hero{display:flex;align-items:center;justify-content:space-between;padding:26px 34px;color:#fff;font-weight:700}
.kas-auth-brand{display:flex;align-items:center}.kas-auth-kicker{font-size:16px;opacity:.95}
.kas-brand-logo{max-height:58px;max-width:220px;display:block;object-fit:contain}
.kas-brand-fallback{font-size:24px;font-weight:800;color:inherit}
.kas-auth-window{position:relative;background:linear-gradient(180deg,#f7f9ff,#eef3ff);margin:0 20px 20px;border-radius:30px;min-height:760px;padding:98px 22px 64px}
.kas-window-dots{position:absolute;top:18px;left:20px;display:flex;gap:10px}
.kas-window-dots span{display:block;width:15px;height:15px;border-radius:50%}
.kas-window-dots span:nth-child(1){background:#ff5f57}.kas-window-dots span:nth-child(2){background:#ffbd2e}.kas-window-dots span:nth-child(3){background:#28c840}
.kas-auth-card{max-width:1080px;margin:0 auto;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.9);border-radius:28px;box-shadow:0 18px 50px rgba(15,23,42,.08);overflow:hidden}
.kas-auth-grid{display:grid;grid-template-columns:1.08fr .92fr}
.kas-auth-copy{padding:46px;position:relative;background:
  radial-gradient(circle at top right,rgba(79,70,229,.18),transparent 30%),
  linear-gradient(180deg,#f9fbff,#eef3ff)}
.kas-badge{display:inline-flex;padding:9px 14px;border-radius:999px;background:#fff;color:#4f46e5;font-weight:800;font-size:12px;letter-spacing:.05em;text-transform:uppercase;box-shadow:0 12px 30px rgba(79,70,229,.08)}
.kas-auth-copy h2{font-size:52px;line-height:1.02;margin:18px 0 14px;color:#0f172a;max-width:420px}
.kas-auth-copy p{font-size:18px;line-height:1.65;color:#64748b;max-width:460px}
.kas-rocket{font-size:72px;margin-top:32px}
.kas-auth-main{padding:28px 28px 34px;background:#fff}
.kas-auth-main>.kas-brand-logo,.kas-auth-main>.kas-brand-fallback{display:block;margin:0 auto 18px;text-align:center;color:#0f172a}
.kas-auth-tabs{display:flex;background:#eef2ff;padding:8px;border-radius:18px;gap:8px}
.kas-auth-tab{flex:1;border:0;background:transparent;padding:14px 18px;border-radius:14px;font-weight:800;color:#475569;cursor:pointer;transition:.22s ease}
.kas-auth-tab.is-active{background:#fff;color:#1e1b4b;box-shadow:0 10px 20px rgba(79,70,229,.12)}
.kas-auth-panel{display:none}.kas-auth-panel.is-active{display:block}
.kas-form-wrap{padding:16px 4px 0}
.kas-form-header h3{margin:0 0 8px;font-size:40px;line-height:1.05;color:#0f172a;font-weight:900}
.kas-form-header p{margin:0 0 22px;color:#64748b;font-size:16px}
.kas-form{display:flex;flex-direction:column;gap:16px}
.kas-field label{display:block;color:#0f172a;font-weight:800;margin-bottom:8px}
.kas-field label span{color:#ef4444}
.kas-field input{width:100%;box-sizing:border-box;height:56px;border:1.5px solid #cad5ec;border-radius:16px;padding:0 16px;font-size:16px;background:#fff;color:#111827;outline:none;transition:.2s ease}
.kas-field input:focus{border-color:#4f46e5;box-shadow:0 0 0 4px rgba(79,70,229,.1)}
.kas-password-wrap{position:relative}.kas-password-wrap input{padding-right:52px}
.kas-eye{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:18px}
.kas-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.kas-meta-row{margin-top:-4px;margin-bottom:4px}
.kas-remember{display:flex;align-items:center;gap:10px;color:#0f172a;font-weight:600;font-size:14px}.kas-remember input{width:18px;height:18px;accent-color:#4f46e5}
.kas-link,.kas-inline-switch{color:#4f46e5;text-decoration:none;font-weight:800}.kas-inline-switch{background:none;border:0;padding:0;cursor:pointer;font:inherit}
.kas-primary-btn{height:56px;border:0;border-radius:16px;background:linear-gradient(90deg,#4f46e5,#06b6d4);color:#fff;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 16px 28px rgba(79,70,229,.22)}
.kas-primary-btn:hover{transform:translateY(-1px)}
.kas-divider{position:relative;margin:20px 0 16px;text-align:center;color:#64748b;font-weight:700}.kas-divider:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#e2e8f0}.kas-divider span{position:relative;z-index:1;background:#fff;padding:0 12px}
.kas-divider-top{margin-top:18px}
.kas-social-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kas-social-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:0 14px;border:1.5px solid #d8e0f2;border-radius:16px;background:#f8faff;text-decoration:none;color:#0f172a;font-weight:800;transition:.18s ease}
.kas-social-btn:hover{border-color:#b8c4ea;background:#fff;box-shadow:0 10px 20px rgba(15,23,42,.05)}
.kas-social-logo{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center}
.kas-form-switch{margin:22px 0 0;text-align:center;color:#1f2937;font-size:16px}
.kas-helper-note{margin:12px 0 0;color:#64748b;font-size:13px}
.kas-terms-row{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.55;color:#475569}
.kas-terms-row input{margin-top:4px}
.kas-error{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;border-radius:14px;padding:12px 14px;margin-bottom:16px;font-weight:700}
.kas-notice{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:14px;padding:12px 14px;margin-bottom:16px;font-weight:700}
.kas-forgot-shell{background:transparent;box-shadow:none}
.kas-forgot-card{max-width:560px;margin:0 auto}
@media (max-width:980px){.kas-auth-grid{grid-template-columns:1fr}.kas-auth-copy{display:none}}
@media (max-width:767px){.kas-auth-shell{margin:14px;border-radius:24px}.kas-auth-hero{padding:18px}.kas-auth-window{margin:0 12px 12px;border-radius:22px;min-height:auto;padding:72px 14px 26px}.kas-auth-main{padding:18px}.kas-form-header h3{font-size:30px}.kas-row{flex-direction:column;align-items:flex-start}.kas-social-buttons{grid-template-columns:1fr}}


/* v5.2.1 signup polish */
.kas-auth-main{padding:34px 34px 38px;background:#fff}
.kas-register-card .kas-form-header h3{font-size:48px;line-height:1.02}
.kas-register-card .kas-form-header p{font-size:17px}
.kas-register-card .kas-social-buttons{grid-template-columns:1fr 1fr;gap:16px}
.kas-register-card .kas-social-btn{
  min-height:64px;
  border-radius:18px;
  background:#f6f7fb;
  border:1.5px solid #e3e5ee;
  font-size:18px;
  justify-content:flex-start;
  padding:0 24px;
}
.kas-register-card .kas-social-logo{width:28px;height:28px;flex:0 0 28px}
.kas-register-card .kas-divider{margin:24px 0 20px}
.kas-register-card .kas-divider span{
  padding:0 16px;
  font-size:17px;
  color:#111827;
  font-weight:700;
}
.kas-register-card .kas-field label{
  font-size:16px;
  font-weight:800;
}
.kas-register-card .kas-field input{
  height:64px;
  border-radius:18px;
  border:2px solid #cfd4df;
  font-size:17px;
}
.kas-register-card .kas-password-wrap input{padding-right:56px}
.kas-register-card .kas-terms-row{
  margin-top:2px;
  font-size:15px;
  color:#5b6270;
}
.kas-register-card .kas-primary-btn{
  height:66px;
  border-radius:18px;
  font-size:18px;
}
.kas-register-card .kas-form-switch{
  margin-top:28px;
  font-size:17px;
}
@media (max-width:767px){
  .kas-auth-main{padding:20px}
  .kas-register-card .kas-form-header h3{font-size:36px}
  .kas-register-card .kas-social-buttons{grid-template-columns:1fr}
  .kas-register-card .kas-social-btn{min-height:58px;font-size:17px}
  .kas-register-card .kas-field input{height:58px;font-size:16px}
  .kas-register-card .kas-primary-btn{height:58px}
}


/* v5.3 auth alignment fixes */
.kas-auth-shell{overflow:visible}
.kas-auth-card{max-width:1180px}
.kas-auth-grid{grid-template-columns:1fr 1fr;align-items:stretch}
.kas-auth-copy{padding:56px 54px}
.kas-auth-main{padding:44px 42px 42px}
.kas-auth-main>.kas-brand-logo,.kas-auth-main>.kas-brand-fallback{
  margin:0 auto 24px;
  max-width:240px;
}
.kas-brand-logo{
  width:auto;
  max-width:min(220px, 72vw);
  height:auto;
  max-height:72px;
}
.kas-register-card .kas-form{
  gap:20px;
}
.kas-register-card .kas-form-header{
  margin-bottom:8px;
}
.kas-register-card .kas-form-header h3{
  font-size:52px;
  line-height:1.02;
  margin-bottom:10px;
}
.kas-register-card .kas-form-header p{
  font-size:18px;
  line-height:1.5;
  margin-bottom:20px;
}
.kas-register-card .kas-social-wrap{
  margin-bottom:8px;
}
.kas-register-card .kas-social-buttons{
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.kas-register-card .kas-social-btn{
  min-height:68px;
  align-items:center;
  justify-content:flex-start;
  padding:0 24px;
  border-radius:18px;
  background:#f6f7fb;
  border:1.5px solid #dde2ec;
  font-size:19px;
}
.kas-register-card .kas-social-text{
  display:inline-flex;
  align-items:center;
  line-height:1.2;
}
.kas-register-card .kas-divider{
  margin:26px 0 22px;
}
.kas-register-card .kas-field input{
  height:66px;
  border-radius:18px;
  font-size:17px;
  padding:0 18px;
}
.kas-register-card .kas-password-wrap input{
  padding-right:56px;
}
.kas-register-card .kas-terms-row{
  margin-top:2px;
  align-items:flex-start;
}
.kas-register-card .kas-primary-btn{
  height:68px;
  border-radius:18px;
  font-size:19px;
}
.kas-register-card .kas-form-switch{
  margin-top:28px;
  font-size:17px;
}
.kas-login-card .kas-primary-btn{
  height:62px;
}
@media (max-width:1024px){
  .kas-auth-grid{grid-template-columns:1fr}
  .kas-auth-copy{display:none}
  .kas-auth-main{padding:30px 24px 32px}
}
@media (max-width:767px){
  .kas-brand-logo{
    max-width:min(180px, 58vw);
    max-height:54px;
  }
  .kas-auth-main>.kas-brand-logo,.kas-auth-main>.kas-brand-fallback{
    margin-bottom:18px;
  }
  .kas-register-card .kas-form-header h3{
    font-size:38px;
  }
  .kas-register-card .kas-form-header p{
    font-size:16px;
  }
  .kas-register-card .kas-social-buttons{
    grid-template-columns:1fr;
    gap:14px;
  }
  .kas-register-card .kas-social-btn{
    min-height:60px;
    font-size:17px;
    padding:0 18px;
  }
  .kas-register-card .kas-field input{
    height:58px;
    font-size:16px;
  }
  .kas-register-card .kas-primary-btn{
    height:60px;
    font-size:18px;
  }
}
