body{overflow-y:auto; overflow-x:hidden;}

.auth-screen{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 24px;
  position:relative;
  z-index:1;
}

.auth-card{
  position:relative;
  width:100%;
  max-width:420px;
  background:#12151C;
  border:1px solid var(--surface-border);
  border-radius:20px;
  padding:36px 32px;
  backdrop-filter:blur(14px);
  animation:fadeUp .6s ease both;
}

.auth-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--text-dim);
  text-decoration:none;
  font-size:13px;
  margin-bottom:22px;
}
.auth-back:hover{color:var(--text);}

.auth-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:20px;
}

.auth-card h1{
  font-size:24px;
  font-weight:900;
  letter-spacing:-0.02em;
  text-align:center;
  margin-bottom:8px;
}

.auth-sub{
  color:var(--text-dim);
  font-size:13.5px;
  line-height:1.6;
  text-align:center;
  margin-bottom:26px;
}

.auth-error{
  display:none;
  background:rgba(255,77,103,0.12);
  border:1px solid rgba(255,77,103,0.35);
  color:#ffb3bd;
  font-size:12.5px;
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:16px;
}
.auth-error.show{display:block;}

.auth-field{margin-bottom:16px;}
.auth-field label{
  display:block;
  font-size:12.5px;
  color:var(--text-dim);
  margin-bottom:6px;
}
.auth-field input{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  color:var(--text);
  font-size:14px;
  outline:none;
  font-family:inherit;
  transition:border-color .2s ease;
}
.auth-field input::placeholder{color:rgba(248,247,251,0.35);}
.auth-field input:focus{border-color:var(--accent-2);}

.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
  font-size:12.5px;
  color:var(--text-dim);
}
.auth-row a{color:var(--text-dim); text-decoration:none;}
.auth-row a:hover{color:var(--text);}

.auth-check{display:flex; align-items:center; gap:8px; cursor:pointer;}
.auth-check input{accent-color:var(--accent-2); cursor:pointer;}

.auth-terms{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:12.5px;
  color:var(--text-dim);
  line-height:1.5;
  margin-bottom:22px;
  cursor:pointer;
}
.auth-terms input{accent-color:var(--accent-2); cursor:pointer; margin-top:2px;}
.auth-terms a{color:var(--text); text-decoration:underline;}

.auth-submit{
  width:100%;
  border:none;
  border-radius:999px;
  padding:14px;
  font-weight:700;
  font-size:14.5px;
  color:#fff;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
  font-family:inherit;
}
.auth-submit:hover{transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,0.25);}

.auth-switch{
  text-align:center;
  margin-top:22px;
  font-size:13px;
  color:var(--text-dim);
}
.auth-switch a{color:#fff; font-weight:700; text-decoration:none;}
.auth-switch a:hover{text-decoration:underline;}

/* Phones (600px and down) */
@media only screen and (max-width: 600px){
  .auth-screen{padding:0; align-items:flex-end;}
  .auth-card{
    width:100%;
    max-width:none;
    padding:28px 22px;
    border-radius:0;
    border:none;
    border-left:none;
    border-right:none;
    background:transparent;
    backdrop-filter:none;
  }
  .welcome-background{
    background-size:cover;
    background-position:center top;
  }
  .welcome-background::after{
    background: linear-gradient(180deg,
      rgba(18,21,28,0.15) 0%,
      rgba(18,21,28,0.4) 18%,
      rgba(18,21,28,0.8) 32%,
      rgba(18,21,28,0.96) 42%,
      rgba(18,21,28,1) 50%,
      rgba(18,21,28,1) 100%);
  }
}
