/* =========================================================
   iBLOCK Auth — login/register page
   Depends on inverseblock-shared.css
========================================================= */

.auth-container{
  max-width: 980px;
}

.auth-section{
  position:relative;
  z-index:1;
  max-width:560px;
  margin:0 auto 100px;
  padding:0 clamp(14px,3vw,24px);
}

.auth-card{
  background:linear-gradient(180deg,rgba(21,26,33,.96),rgba(10,13,18,.92));
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:34px;
  position:relative;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(0,0,0,.34);
}

.auth-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--accent-g),transparent);
}

.auth-card > *{
  position:relative;
  z-index:1;
}

.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:26px;
  background:rgba(255,255,255,.025);
  border:1px solid var(--border);
  border-radius:14px;
  padding:5px;
}

.auth-tabs a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:10px;
  color:var(--text-2);
  font-size:13px;
  font-weight:800;
  letter-spacing:1.4px;
  text-transform:uppercase;
  transition:all .22s;
}

.auth-tabs a.active{
  background:var(--accent);
  color:#111;
}

.auth-tabs a:not(.active):hover{
  background:var(--bg-raised);
  color:var(--text);
}

.auth-alert{
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:18px;
  font-size:14px;
  line-height:1.55;
}

.auth-alert-error{
  color:#fecaca;
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.22);
}

.auth-alert-success{
  color:#bbf7d0;
  background:rgba(34,197,94,.08);
  border:1px solid rgba(34,197,94,.2);
}

.auth-form .form-field{
  margin-bottom:18px;
}

.auth-form .form-field label{
  font-size:11px;
  font-weight:800;
  color:var(--text-3);
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:10px;
  display:block;
  font-family:'IBM Plex Mono',monospace;
}

.auth-form .form-field label .req{
  color:var(--accent);
}

.auth-form input{
  width:100%;
  background:var(--bg-raised);
  border:1px solid var(--border);
  border-radius:12px;
  padding:15px 16px;
  color:var(--text);
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:15px;
  font-weight:600;
  transition:all .25s;
  outline:none;
}

.auth-form input:hover{
  border-color:var(--border-h);
}

.auth-form input:focus{
  border-color:var(--accent);
  background:var(--bg-hover);
  box-shadow:0 0 0 3px rgba(240,122,32,.12);
}

.auth-form input::placeholder{
  color:var(--text-3);
}

.auth-submit{
  width:100%;
  margin-top:8px;
  min-height:54px;
}

.auth-foot{
  margin-top:22px;
  text-align:center;
  color:var(--text-2);
  font-size:14px;
  line-height:1.7;
}

.auth-foot a{
  color:var(--accent);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}
.auth-form .form-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.auth-form .form-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.auth-form .form-field input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 122, 32, 0.75);
  box-shadow: 0 0 0 4px rgba(240, 122, 32, 0.12);
}

.auth-form .form-field input:-webkit-autofill,
.auth-form .form-field input:-webkit-autofill:hover,
.auth-form .form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 0 0 1000px #151515 inset;
  border: 1px solid rgba(240, 122, 32, 0.55);
}

@media(max-width:560px){
  .auth-section{
    margin-bottom:70px;
  }

  .auth-card{
    padding:24px 18px;
  }

  .auth-tabs a{
    min-height:40px;
    font-size:12px;
  }
}
