/* Modern auth styling (ICQ vibe, responsive) */
body.icq.auth{min-height:100dvh}

.auth-bg{
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 14px;
}

body.theme-dark .auth-bg{
  background:
    radial-gradient(1200px 600px at 20% 15%, rgba(127,203,75,.18), transparent 55%),
    radial-gradient(900px 500px at 85% 30%, rgba(46,155,255,.18), transparent 60%),
    radial-gradient(900px 600px at 60% 95%, rgba(255,214,102,.10), transparent 60%),
    linear-gradient(180deg, #07101e, #0b1526);
}

.auth-shell{
  width:min(980px, 100%);
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:22px;
  align-items:center;
}

.auth-brand{
  padding:14px 6px;
  color: var(--text, #08324a);
}
.auth-brand .flower{
  width:56px;height:56px;
  border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.08);
  font-size:26px;
}
body.theme-dark .auth-brand .flower{
  background:rgba(15,26,44,.75);
  border:1px solid rgba(255,255,255,.12);
  color:#e6eef7;
}
.auth-brand .title{
  margin-top:12px;
  font-size:44px;
  font-weight:800;
  letter-spacing:.5px;
  text-shadow: 0 10px 30px rgba(0,0,0,.08);
  color: #a9b0b9;
}
.auth-brand .subtitle{
  margin-top:10px;
  font-size:15px;
  opacity:.85;
  max-width:44ch;
  line-height:1.4;
  color: #a9b0b9;
}

.auth-card{
  border:1px solid rgb(11 73 205 / 36%);
  border-radius:22px;
  box-shadow: 0 22px 70px rgba(0,0,0,.12);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
body.theme-dark .auth-card{
  background:rgba(15,26,44,.75);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.auth-tabs{
  display:flex;
  gap:8px;
  padding:10px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
body.theme-dark .auth-tabs{border-bottom:1px solid rgba(255,255,255,.10)}

.auth-tabs .tab{
  flex:1;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.70);
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
}
body.theme-dark .auth-tabs .tab{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(11,21,38,.65);
  color:#e6eef7;
}
.auth-tabs .tab.active{
  background: linear-gradient(180deg, rgba(127,203,75,.95), rgba(127,203,75,.70));
  border-color: rgba(79,159,37,.55);
  color:#08324a;
}

.authbody{padding:16px 16px 6px}
.authbody .row{margin:12px 0}
.authbody label{display:block;margin-bottom:6px;font-weight:700;opacity:.9}

.authbody input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.92);
  font-size:16px;
  outline:none;
}
body.theme-dark .authbody input{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(11,21,38,.55);
  color:#e6eef7;
}
.authbody input:focus{
  border-color: rgba(46,155,255,.55);
  box-shadow: 0 0 0 4px rgba(46,155,255,.18);
}

.send.big{
  width:100%;
  margin-top:8px;
  padding:12px 14px;
  border-radius:16px;
  font-weight:800;
}

.muted.err{min-height:18px;margin-top:8px;color:#b11c1c}
body.theme-dark .muted.err{color:#ff8f8f}

.switchline{
  margin-top:12px;
  font-size:13px;
  opacity:.9;
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:center;
}
.link{
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  font-weight:800;
  color: rgba(46,155,255,1);
}
body.theme-dark .link{color: rgba(127,203,75,1)}

.auth-foot{
  padding:12px 16px 14px;
  display:flex;
  gap:10px;
  justify-content:center;
  font-size:12px;
  opacity:.8;
  border-top:1px solid rgba(0,0,0,.08);
}
body.theme-dark .auth-foot{border-top:1px solid rgba(255,255,255,.10)}
.dotsep{opacity:.6}
.footlink{color:inherit;text-decoration:none}
.footlink:hover{text-decoration:underline}

/* Responsive */
@media (max-width: 940px){
  .auth-shell{grid-template-columns: 1fr; gap:14px}
  .auth-brand{display:none}
  .auth-card{max-width:520px;margin:0 auto}
}

/*Форма входа*/
/* ===== Login page: strict dark style override ===== */

/* Фон страницы входа */
body.auth{
  min-height:100vh;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(46,155,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(127,203,75,.10), transparent 60%),
    linear-gradient(180deg, #060a12, #0b1220 60%, #070b14);
  color: rgba(230,238,247,.92);
}

/* Убираем старые “светлые карточки” */
body.auth .authbox{
  width: 420px;
  max-width: calc(100% - 24px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,18,30,.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

/* Шапка */
body.auth .authhead{
  padding: 16px 16px 12px;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.auth .authhead .brand,
body.auth .authhead{
  color: rgba(230,238,247,.95);
}

/* Тело */
body.auth .authbody{
  padding: 16px;
}

/* Поля */
body.auth input.input,
body.auth .input{
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(230,238,247,.92);
}
body.auth input::placeholder{
  color: rgba(230,238,247,.50);
}
body.auth input:focus{
  outline: none;
  border-color: rgba(46,155,255,.55);
  box-shadow: 0 0 0 4px rgba(46,155,255,.18);
}

/* Кнопки: НЕ зелёные, а строгие (синие) */
body.auth .send,
body.auth button.send{
  height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(46,155,255,.45);
  background: rgba(46,155,255,.18) !important;
  color: rgba(230,238,247,.95);
  font-weight: 900;
  cursor: pointer;
}
body.auth .send:hover{
  filter: brightness(1.05);
}
body.auth .send:active{
  transform: translateY(1px);
}

/* Ссылки/переключатели “Вход/Регистрация” */
body.auth a{
  color: rgba(230,238,247,.90);
  text-decoration: none;
}
body.auth a:hover{
  color: #2e9bff;
}

/* Табы/переключатели (если они у тебя .gpill/.tab и т.п.) — чуть строже */
body.auth .gpill,
body.auth .tab,
body.auth .mini{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(230,238,247,.90);
}
body.auth .gpill.active,
body.auth .tab.active{
  border-color: rgba(46,155,255,.55);
  box-shadow: 0 0 0 4px rgba(46,155,255,.14) inset;
}

/* Мелкий текст */
body.auth .muted,
body.auth .note{
  color: rgba(230,238,247,.68);
}

body.auth .topbar,
body.auth .chat-top,
body.auth .settings-head{
  background: transparent !important;
}


/* ===== FORCE dark login override (must be at END of auth.css) ===== */
body.auth{
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(46,155,255,.18) 0, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(255,255,255,.06) 0, transparent 60%),
    linear-gradient(180deg, #060a12 0%, #0b1220 55%, #070b14 100%) !important;
  color: rgba(230,238,247,.92) !important;
}

/* карточка логина */
body.auth .authbox{
  background: rgba(12,18,30,.62) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.55) !important;
  backdrop-filter: blur(14px);
}

/* убираем зеленую шапку/градиенты */
body.auth .authhead,
body.auth .topbar{
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

/* инпуты */
body.auth input,
body.auth .input{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(230,238,247,.92) !important;
  border-radius: 16px !important;
  height: 46px !important;
}
body.auth input::placeholder{
  color: rgba(230,238,247,.50) !important;
}
body.auth input:focus{
  outline: none !important;
  border-color: rgba(46,155,255,.60) !important;
  box-shadow: 0 0 0 4px rgba(46,155,255,.18) !important;
}

/* кнопки (убрать “зелёные”) */
body.auth .send,
body.auth button.send{
  background: rgba(46,155,255,.18) !important;
  border: 1px solid rgba(46,155,255,.45) !important;
  color: rgba(230,238,247,.95) !important;
  border-radius: 16px !important;
  height: 46px !important;
  font-weight: 900 !important;
}
body.auth .send:hover{ filter: brightness(1.06) !important; }
body.auth .send:active{ transform: translateY(1px) !important; }

/* табы/переключатели "Вход/Регистрация" (если есть классы) */
body.auth .mini,
body.auth .tab,
body.auth .gpill{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(230,238,247,.92) !important;
}

/* мелкий текст */
body.auth .muted{
  color: rgba(230,238,247,.68) !important;
}