html { -webkit-text-size-adjust: 100%; }

.auth-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
}

.auth-card{
  width: min(88%, 400px);
  padding: clamp(0.75rem, 1.8vw, 1.2rem);
  text-align: center;
  box-sizing: border-box;
}

.auth-card--narrow{
  width: min(82%, 350px);
}

.auth-title{
  color: var(--c-cyan);
  font-size: clamp(0.98rem, 1.35vw, 1.22rem);
  letter-spacing: 0.8px;
  margin: 0 auto 0.8rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-cyan-soft);
  text-shadow: 0 0 4px rgba(0,255,255,0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-form{
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin: 0 auto;
}

.auth-copy{
  margin: 0 0 0.8rem;
  color: #b7ced6;
  font-size: 0.72rem;
  line-height: 1.55;
}

.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password]{
  width: 100%;
  padding: 7px 9px;
  background: var(--c-field-bg);
  border: 1px solid rgba(0,255,255,0.35);
  border-radius: 7px;
  color: #fff;
  font-size: clamp(0.68rem, 0.76vw, 0.78rem);
  font-family: inherit;
  transition: 0.3s;
  box-sizing: border-box;
}

.auth-form input:focus{
  border-color: var(--c-cyan);
  box-shadow: 0 0 8px rgba(0,255,255,0.4);
  outline: none;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active{
  -webkit-box-shadow: 0 0 0 30px var(--c-field-bg) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border: 1px solid rgba(0,255,255,0.35);
  transition: background-color 9999s ease-in-out 0s;
}

.auth-form > .btn,
.auth-form > button[type=submit]{
  width: 100%;
}

.auth-consent{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:0.55rem;
  color:#c7d9df;
  font-size:0.68rem;
  line-height:1.5;
  text-align:left;
}

.auth-consent input{
  width:16px;
  height:16px;
  margin:0.1rem 0 0;
  accent-color:var(--c-cyan);
}

.auth-consent a{
  color:var(--c-cyan);
}

.auth-feedback{
  margin-bottom: 0.65rem;
  padding: 7px 10px;
  border-radius: 7px;
  text-align: center;
  font-weight: bold;
  font-size: 0.72rem;
  word-wrap: break-word;
}

.auth-feedback--error{
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid #ff6666;
  color: #ff6666;
  box-shadow: 0 0 12px rgba(255, 100, 100, 0.3);
}

.auth-feedback--success{
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid rgba(0,255,170,0.5);
  color: #00ffcc;
  box-shadow: 0 0 8px rgba(0,255,170,0.3);
}

.auth-beta-notice{
  display:grid;
  gap:.3rem;
  margin:0 0 .8rem;
  padding:.65rem .75rem;
  border:1px solid rgba(120,180,255,.42);
  border-radius:8px;
  background:rgba(65,100,150,.16);
  color:#dbeaff;
  font-size:.68rem;
  line-height:1.5;
  text-align:left;
}

.auth-beta-notice strong{color:#fff}

.auth-links{
  width: 100%;
  margin-top: 0.65rem;
  font-size: 0.76rem;
}

.auth-links--split{
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.auth-links p{
  margin: 0.6rem 0 0;
}

.auth-links a{
  color: var(--c-cyan);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
  font-size: 0.74rem;
}

.auth-links a:hover{
  color: #00ffcc;
  text-shadow: 0 0 6px #00ffff;
}

.auth-footer{
  text-align: center;
  color: #888;
  font-size: 0.64rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(0,255,255,0.25);
  padding-top: 0.5rem;
  line-height: 1.3;
}

.auth-footer a{
  display:block;
  margin-top:.35rem;
  color:var(--c-cyan);
  text-decoration:none;
}

.auth-footer a:hover{
  color:#9fffff;
}

.auth-brand{
  color: var(--c-cyan);
}

.password-wrapper{
  position: relative;
  width: 100%;
}

.password-wrapper input{
  width: 100%;
  padding-right: 74px;
}

.password-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  color: rgba(0,255,255,0.7);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  z-index: 2;
}

.password-toggle:hover{
  color: var(--c-cyan);
  text-shadow: 0 0 6px var(--c-cyan);
}

@media (max-width: 768px){
  .auth-card{
    width: 92%;
    padding: 0.9rem;
  }
}

@media (max-width: 600px){
  .auth-links--split{
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px){
  .auth-title{
    font-size: 0.92rem;
  }

  .auth-form input,
  .auth-form .btn,
  .auth-form > button[type=submit],
  .password-toggle{
    font-size: 0.72rem;
  }
}
