/* users/static/users/auth/style.css */
/* Auth UI — login / signup / reset */

.auth-wrap{
  max-width: 520px;
  margin: 0 auto;
}

.auth-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  overflow:hidden;
}

.auth-head{
  padding:18px 22px;
  background:linear-gradient(135deg, rgba(0,0,0,.03), rgba(0,0,0,0));
  border-bottom:1px solid rgba(0,0,0,.06);
  text-align:center;
}

.auth-title{
  margin:0;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}

.auth-sub{
  margin:6px 0 0;
  font-size:13px;
  color:rgba(0,0,0,.62);
  line-height:1.45;
}

.auth-body{
  padding:22px;
}

/* form fields */
.auth-field label{
  font-weight:900;
  margin-bottom:6px;
  display:block;
}

.auth-field input,
.auth-field select,
.auth-field textarea{
  width:100%;
  border-radius:12px;
  padding:12px 12px;
  border:1px solid rgba(0,0,0,.14);
  outline:none;
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.auth-field input::placeholder{
  color:rgba(0,0,0,.35);
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus{
  border-color:rgba(0,0,0,.35);
  box-shadow:0 0 0 3px rgba(0,0,0,.07);
}

.auth-error{
  margin-top:6px;
  font-size:12px;
  color:#b00020;
  font-weight:700;
}

/* actions */
.auth-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.auth-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  padding:12px 18px;
  font-weight:900;
  min-width:230px;
  min-height:46px;
  text-align:center;
  line-height:1;
  box-shadow:none;
}

/* make bootstrap buttons look consistent */
.auth-actions .btn-primary{
  background:rgba(0,0,0,.88);
  border-color:rgba(0,0,0,.88);
}
.auth-actions .btn-primary:hover{
  background:rgba(0,0,0,1);
  border-color:rgba(0,0,0,1);
}

.auth-actions .btn-light{
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  color:#111;
}
.auth-actions .btn-light:hover{
  border-color:rgba(0,0,0,.22);
  background:#fff;
}

/* links */
.auth-links{
  margin-top:12px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.auth-links a{
  font-size:13px;
  color:rgba(0,0,0,.65);
  text-decoration:none;
  font-weight:800;
}
.auth-links a:hover{
  color:rgba(0,0,0,.92);
  text-decoration:underline;
}

/* divider */
.auth-divider{
  margin:20px 0;
  border-top:1px solid rgba(0,0,0,.08);
}

.auth-note{
  margin:0 0 12px;
  text-align:center;
  font-size:13px;
  color:rgba(0,0,0,.72);
}

/* Telegram button */
.tg-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  border-radius:14px;
  padding:13px 14px;
  font-weight:900;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  user-select:none;
}

.tg-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(0,0,0,.10);
}

.tg-btn:active{
  transform:translateY(0);
  opacity:.92;
}

.tg-btn--login{
  background:#229ED9;
  border-color:rgba(34,158,217,.55);
  color:#fff;
}

.tg-ico{
  width:22px;
  height:22px;
  display:inline-block;
}
.tg-ico svg{
  width:100%;
  height:100%;
  display:block;
}

/* Telegram widget wrapper */
.tg-widget-wrap{
  display:flex;
  justify-content:center;
  margin-top:14px;
}

/* Fix telegram widget alignment if it renders inline */
.tg-widget-wrap iframe,
.tg-widget-wrap > span{
  margin: 0 auto !important;
}

/* mobile tweaks */
@media (max-width: 576px){
  .auth-body{ padding:18px; }
  .auth-actions .btn{
    min-width: 100%;
  }
}