*{
  box-sizing:border-box;
}

:root{
  --swim-primary:#00b9d8;
  --swim-primary-dark:#0493ad;
  --swim-bg:#f5f8fb;
  --swim-card:#ffffff;
  --swim-text:#17202a;
  --swim-muted:#6b7280;
  --swim-line:#e5edf2;
  --swim-soft:#eafaff;
  --swim-danger:#d9304f;
  --swim-success:#119c65;
  --swim-radius:10px;
}

html,
body{
  margin:0;
  min-height:100%;
  font-family:'Montserrat',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--swim-text);
  background:var(--swim-bg);
}

body.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  background:
    radial-gradient(circle at 20% 12%, rgba(0,185,216,.18), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(0,185,216,.12), transparent 32%),
    linear-gradient(135deg,#f7fbff 0%,#eef6f9 100%);
}

.auth-shell{
  width:min(1180px,100%);
  display:grid;
  grid-template-columns:minmax(360px,480px) 1fr;
  gap:24px;
  align-items:stretch;
}

.auth-shell--compact{
  grid-template-columns:minmax(320px,520px);
  justify-content:center;
}

.auth-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(229,237,242,.9);
  border-radius:var(--swim-radius);
  box-shadow:0 24px 70px rgba(19,43,54,.12);
  padding:34px;
  backdrop-filter:blur(18px);
}

.auth-brand{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}

.auth-logo{
  display:block;
  width:74px;
  height:auto;
  max-height:74px;
  object-fit:contain;
}

.auth-eyebrow{
  color:var(--swim-primary-dark);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.11em;
  margin-bottom:5px;
}

.auth-card h1{
  margin:0;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.04em;
}

.auth-lead{
  margin:0 0 24px;
  color:var(--swim-muted);
  font-size:15px;
  line-height:1.65;
}

.auth-form{
  display:grid;
  gap:17px;
}

.field{
  display:grid;
  gap:8px;
}

.field span{
  font-size:13px;
  font-weight:700;
  color:#253244;
}

.field input{
  width:100%;
  height:52px;
  border:1px solid var(--swim-line);
  border-radius:var(--swim-radius);
  padding:0 15px;
  background:#fff;
  color:var(--swim-text);
  font:inherit;
  outline:none;
  transition:.18s ease;
}

.field input:focus{
  border-color:var(--swim-primary);
  box-shadow:0 0 0 4px rgba(0,185,216,.13);
}

.password-field{
  position:relative;
}

.password-field input{
  padding-right:104px;
}

.password-toggle{
  position:absolute;
  right:7px;
  top:7px;
  height:38px;
  padding:0 11px;
  border:0;
  border-radius:8px;
  background:#eef7fa;
  color:var(--swim-primary-dark);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.auth-submit{
  height:54px;
  border:0;
  border-radius:var(--swim-radius);
  background:linear-gradient(135deg,var(--swim-primary),#12cee8);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 15px 34px rgba(0,185,216,.26);
  transition:.2s ease;
}

.auth-submit:hover{
  transform:translateY(-1px);
  box-shadow:0 19px 42px rgba(0,185,216,.32);
}

.auth-footer-line{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:4px;
  font-size:14px;
}

.auth-footer-line a{
  color:var(--swim-primary-dark);
  font-weight:800;
  text-decoration:none;
}

.auth-footer-line a:hover{
  text-decoration:underline;
}

.auth-note{
  margin:0;
  color:var(--swim-muted);
  font-size:12px;
  line-height:1.55;
  text-align:center;
}

.auth-alert{
  border-radius:var(--swim-radius);
  padding:13px 14px;
  font-size:13px;
  line-height:1.55;
  margin-bottom:17px;
}

.auth-alert--error{
  color:#8a1028;
  background:#fff0f3;
  border:1px solid #ffd4dc;
}

.auth-alert--success{
  color:#0c6d49;
  background:#ecfff6;
  border:1px solid #bff1da;
}

.auth-alert--debug{
  color:#1f2937;
  background:#fff8db;
  border:1px solid #f3db7a;
}

.auth-alert--debug a{
  color:#065f9f;
  word-break:break-all;
}

.auth-visual{
  min-height:620px;
}

.auth-visual-card{
  position:relative;
  height:100%;
  overflow:hidden;
  border-radius:var(--swim-radius);
  background:
    linear-gradient(135deg,rgba(0,185,216,.93),rgba(4,147,173,.96)),
    radial-gradient(circle at 28% 18%,rgba(255,255,255,.3),transparent 28%);
  box-shadow:0 24px 70px rgba(19,43,54,.14);
  padding:38px;
  color:#fff;
}

.bubble{
  position:absolute;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  filter:blur(.2px);
}

.bubble--one{
  width:210px;
  height:210px;
  right:-70px;
  top:40px;
}

.bubble--two{
  width:140px;
  height:140px;
  left:54px;
  bottom:80px;
}

.bubble--three{
  width:80px;
  height:80px;
  right:210px;
  bottom:190px;
}

.visual-content{
  position:relative;
  z-index:1;
  max-width:560px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.visual-label{
  display:inline-flex;
  align-self:flex-start;
  border:1px solid rgba(255,255,255,.42);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.visual-content h2{
  margin:0;
  font-size:46px;
  line-height:1.04;
  letter-spacing:-.055em;
}

.visual-content p{
  margin:18px 0 0;
  max-width:480px;
  font-size:16px;
  line-height:1.65;
  color:rgba(255,255,255,.84);
}

@media(max-width:980px){
  body.auth-page{
    padding:16px;
  }

  .auth-shell{
    grid-template-columns:1fr;
  }

  .auth-visual{
    display:none;
  }

  .auth-card{
    padding:24px;
  }

  .auth-card h1{
    font-size:28px;
  }
}

@media(max-width:480px){
  .auth-brand{
    align-items:flex-start;
  }

  .auth-logo{
    width:58px;
  }

  .auth-card{
    padding:20px;
  }
}
