:root{
  --coab-bg:#eaf6fc;
  --coab-bg-2:#f8fcff;
  --coab-card:#ffffff;
  --coab-text:#0b1220;
  --coab-muted:#62748c;
  --coab-border:rgba(10,24,48,.10);
  --coab-border-strong:rgba(10,24,48,.14);
  --coab-accent:#16b5d6;
  --coab-accent-2:#0b1220;
  --coab-shadow:0 24px 70px rgba(8,24,48,.10);
  --coab-radius:28px;
  --coab-radius-sm:18px;
  --coab-max:1280px;
  --coab-field-h:60px;
}

html,body{
  min-height:100%;
}

body.coab-auth-screen{
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(22,181,214,.08), transparent 30%),
    linear-gradient(180deg, var(--coab-bg), var(--coab-bg-2));
  color:var(--coab-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body.coab-auth-screen.admin-bar .coab-auth-page{
  min-height:calc(100svh - 32px);
}

@media (max-width:782px){
  body.coab-auth-screen.admin-bar .coab-auth-page{
    min-height:calc(100svh - 46px);
  }
}

.coab-auth-page{
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
  box-sizing:border-box;
}

.coab-auth-shell-inner{
  width:100%;
  max-width:var(--coab-max);
  margin:0 auto;
}

.coab-auth-layout{
  display:grid;
  grid-template-columns:minmax(320px, 1fr) minmax(420px, 560px);
  gap:36px;
  align-items:center;
}

.coab-auth-layout__brand,
.coab-auth-layout__card{
  min-width:0;
}

.coab-auth-brand-panel{
  padding:10px 8px 10px 8px;
}

.coab-auth-brand__logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  margin-bottom:20px;
}

.coab-auth-brand__logo img{
  display:block;
  width:auto;
  height:78px;
  object-fit:contain;
}

.coab-auth-badge{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(22,181,214,.12);
  color:#118ca5;
  font-weight:800;
  font-size:14px;
  margin-bottom:22px;
}

.coab-auth-hero{
  margin:0 0 18px;
  font-size:clamp(42px, 6vw, 72px);
  line-height:.98;
  letter-spacing:-.05em;
  font-weight:900;
  max-width:12ch;
}

.coab-auth-copy{
  margin:0;
  max-width:620px;
  color:var(--coab-muted);
  font-size:18px;
  line-height:1.55;
}

.coab-auth-points{
  list-style:none;
  margin:28px 0 0;
  padding:0;
  display:grid;
  gap:14px;
}

.coab-auth-points li{
  position:relative;
  padding-left:34px;
  font-size:18px;
  line-height:1.45;
  font-weight:700;
}

.coab-auth-points li::before{
  content:"";
  position:absolute;
  left:0;
  top:.35em;
  width:12px;
  height:12px;
  border-radius:999px;
  background:var(--coab-accent);
  box-shadow:0 0 0 6px rgba(22,181,214,.15);
}

.coab-auth-card-wrap{
  display:flex;
  justify-content:center;
}

.coab-auth-card{
  width:100%;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.65);
  border-radius:36px;
  box-shadow:var(--coab-shadow);
  padding:38px;
  box-sizing:border-box;
  backdrop-filter:blur(12px);
}

.coab-auth-card--compact{
  max-width:520px;
}

.coab-auth-card h2{
  margin:0 0 10px;
  font-size:clamp(34px, 4vw, 48px);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.04em;
}

.coab-auth-subtitle{
  margin:0 0 24px;
  color:var(--coab-muted);
  font-size:16px;
  line-height:1.55;
}

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

.coab-auth-field label{
  display:block;
  margin:0 0 10px;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:var(--coab-text);
}

.coab-auth-field input{
  width:100%;
  height:var(--coab-field-h);
  border-radius:20px;
  border:1px solid var(--coab-border-strong);
  background:#fff;
  color:var(--coab-text);
  padding:0 18px;
  font-size:16px;
  outline:none;
  box-sizing:border-box;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.coab-auth-field input:focus{
  border-color:rgba(22,181,214,.55);
  box-shadow:0 0 0 4px rgba(22,181,214,.14);
}

.coab-auth-password-wrap{
  position:relative;
}

.coab-auth-password-wrap input{
  padding-right:64px;
}

.coab-auth-toggle{
  position:absolute;
  top:50%;
  right:14px;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:transparent;
  cursor:pointer;
  font-size:18px;
  color:#526171;
}

.coab-auth-submit{
  width:100%;
  height:62px;
  border:0;
  border-radius:20px;
  background:linear-gradient(135deg, #07112a 0%, #03133b 100%);
  color:#fff;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.02em;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(2,12,32,.14);
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.coab-auth-submit:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
}

.coab-auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.coab-auth-row a,
.coab-auth-links a{
  color:#0d96b2;
  font-weight:800;
  text-decoration:none;
}

.coab-auth-row a:hover,
.coab-auth-links a:hover{
  text-decoration:underline;
}

.coab-auth-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--coab-muted);
  font-size:15px;
}

.coab-auth-check input{
  width:20px;
  height:20px;
  accent-color:var(--coab-accent);
}

.coab-auth-links{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:22px;
  flex-wrap:wrap;
}

.coab-auth-links--split{
  justify-content:space-between;
}

.coab-auth-sep{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0 8px;
  color:#7d8a9c;
  font-size:15px;
  font-weight:800;
}

.coab-auth-sep::before,
.coab-auth-sep::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background:var(--coab-border);
}

.coab-google-btn{
  width:100%;
  min-height:62px;
  border-radius:999px;
  border:1px solid var(--coab-border-strong);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-decoration:none;
  color:var(--coab-text);
  font-size:17px;
  font-weight:900;
  box-sizing:border-box;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.coab-google-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(22,181,214,.35);
  box-shadow:0 10px 24px rgba(12,28,54,.08);
}

.coab-google-btn__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.coab-auth-errors,
.coab-auth-success{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:16px;
  font-size:14px;
  line-height:1.5;
  font-weight:700;
}

.coab-auth-errors{
  background:#fff3f3;
  color:#9f1d1d;
  border:1px solid rgba(159,29,29,.16);
}

.coab-auth-success{
  background:#eefbf4;
  color:#116b3b;
  border:1px solid rgba(17,107,59,.16);
}

@media (max-width:1080px){
  .coab-auth-layout{
    grid-template-columns:minmax(280px, 1fr) minmax(390px, 520px);
    gap:28px;
  }

  .coab-auth-card{
    padding:30px;
  }

  .coab-auth-hero{
    font-size:clamp(36px, 5vw, 58px);
  }

  .coab-auth-copy,
  .coab-auth-points li{
    font-size:17px;
  }
}

@media (max-width:820px){
  .coab-auth-page{
    padding:16px;
    align-items:flex-start;
  }

  .coab-auth-layout{
    grid-template-columns:1fr;
    gap:16px;
  }

  .coab-auth-layout__brand{
    display:none;
  }

  .coab-auth-card-wrap{
    width:100%;
  }

  .coab-auth-card,
  .coab-auth-card--compact{
    width:100%;
    max-width:100%;
    border-radius:28px;
    padding:24px 18px;
    backdrop-filter:none;
  }

  .coab-auth-card h2{
    font-size:24px;
    margin-bottom:8px;
  }

  .coab-auth-subtitle{
    font-size:14px;
    margin-bottom:18px;
  }

  .coab-google-btn,
  .coab-auth-submit,
  .coab-auth-field input{
    min-height:56px;
    height:56px;
    border-radius:18px;
  }

  .coab-google-btn{
    font-size:16px;
  }

  .coab-auth-links,
  .coab-auth-links--split{
    justify-content:center;
    gap:14px 18px;
  }

  .coab-auth-row{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
}

@media (max-width:420px){
  .coab-auth-page{
    padding:12px;
  }

  .coab-auth-card{
    padding:20px 14px;
    border-radius:24px;
  }

  .coab-google-btn,
  .coab-auth-submit,
  .coab-auth-field input{
    min-height:54px;
    height:54px;
  }

  .coab-google-btn{
    gap:10px;
    font-size:15px;
  }

  .coab-auth-check{
    font-size:14px;
  }
}
