*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body.auth-page{
  margin:0;
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:#f4f6fb;
  background:
    radial-gradient(circle at top left, rgba(143,176,255,.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255,255,255,.06), transparent 28%),
    linear-gradient(180deg, #1f2029 0%, #171820 100%);
}

.auth-wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.auth-card{
  width:min(100%, 460px);
  padding:28px;
  border-radius:22px;
  border:1px solid #4b4b61;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%),
    #343442;
  box-shadow:
    0 24px 70px rgba(0,0,0,.34),
    0 1px 0 rgba(255,255,255,.05) inset;
}

.auth-head{
  margin-bottom:22px;
}

.auth-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  margin-bottom:14px;
  border-radius:999px;
  border:1px solid #5e5e77;
  background:#2d2d39;
  color:#dbe2f6;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.auth-title{
  margin:0 0 10px;
  font-size:32px;
  line-height:1.1;
  color:#ffffff;
}

.auth-subtitle{
  margin:0;
  color:#cfd5e4;
  font-size:15px;
  line-height:1.65;
}

.auth-form{
  display:grid;
  gap:16px;
}

.auth-label{
  display:grid;
  gap:8px;
}

.auth-label span{
  font-size:14px;
  font-weight:600;
  color:#eef2fb;
}

.auth-input{
  width:100%;
  min-height:50px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid #55556c;
  background:#2a2a35;
  color:#ffffff;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input::placeholder{
  color:#9ea7bf;
}

.auth-input:focus{
  border-color:#8fb0ff;
  box-shadow:0 0 0 3px rgba(143,176,255,.16);
  background:#2f2f3c;
}

.auth-message{
  margin:0;
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
  line-height:1.5;
}

.auth-message.error{
  background:rgba(255,107,107,.10);
  border:1px solid rgba(255,107,107,.28);
  color:#ffd2d2;
}

.auth-message.success{
  background:rgba(118,214,163,.10);
  border:1px solid rgba(118,214,163,.28);
  color:#d8ffe8;
}

.auth-submit{
  min-height:52px;
  padding:0 18px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  font-size:15px;
  font-weight:700;
  color:#171820;
  background:linear-gradient(180deg, #cfe0ff 0%, #9dbdff 100%);
  transition:transform .15s ease, opacity .15s ease, box-shadow .15s ease;
  box-shadow:0 10px 24px rgba(83,122,210,.24);
}

.auth-submit:hover{
  transform:translateY(-1px);
}

.auth-submit:disabled{
  opacity:.7;
  cursor:default;
  transform:none;
}

@media (max-width: 640px){
  .auth-wrap{
    padding:14px;
  }

  .auth-card{
    padding:20px;
    border-radius:18px;
  }

  .auth-title{
    font-size:26px;
  }
}