*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    linear-gradient(
      135deg,
      #0f172a,
      #111827,
      #1e293b
    );

  min-height:100vh;
  color:white;
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:0;

  background:
    radial-gradient(
      circle at top left,
      rgba(110,168,254,0.14),
      transparent 38%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255,255,255,0.06),
      transparent 42%
    );

  z-index:-1;
}

.login-page{
  min-height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:28px 18px;
}

.login-card{
  width:100%;
  max-width:460px;

  background:
    rgba(255,255,255,0.08);

  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);

  border:
    1px solid rgba(255,255,255,0.1);

  border-radius:30px;

  padding:38px 28px;

  box-shadow:
    0 24px 70px rgba(0,0,0,0.42);

  animation:enter .25s ease;
}

@keyframes enter{
  from{
    opacity:0;
    transform:translateY(10px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

.logo{
  width:72px;
  height:72px;

  border-radius:22px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:32px;

  margin:0 auto 24px;

  background:
    rgba(255,255,255,0.1);

  border:
    1px solid rgba(255,255,255,0.08);
}

h1{
  text-align:center;

  font-size:32px;
  font-weight:850;

  letter-spacing:-0.5px;

  margin-bottom:10px;
}

.subtitle{
  text-align:center;

  opacity:0.7;

  line-height:1.5;

  margin-bottom:32px;
}

.hidden{
  display:none !important;
}

.name-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.form-group{
  margin-bottom:20px;
}

label{
  display:block;

  margin-bottom:10px;

  font-size:14px;
  font-weight:700;
  opacity:0.8;
}

input{
  width:100%;

  border:none;
  outline:none;

  padding:16px 18px;

  border-radius:17px;

  font-size:16px;

  color:white;

  background:
    rgba(255,255,255,0.08);

  border:
    1px solid rgba(255,255,255,0.08);

  transition:.18s ease;
}

input::placeholder{
  color:rgba(255,255,255,0.42);
}

input:focus{
  border-color:rgba(110,168,254,.58);
  box-shadow:0 0 0 4px rgba(110,168,254,.12);
}

button{
  width:100%;

  border:none;
  outline:none;

  cursor:pointer;

  padding:16px;

  border-radius:18px;

  font-size:16px;
  font-weight:800;

  transition:0.18s ease;
}

button:hover{
  transform:translateY(-2px);
}

button:active{
  transform:scale(.99);
}

button:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}

#loginBtn,
#registerBtn{
  background:white;
  color:black;

  margin-top:8px;

  box-shadow:
    0 16px 36px rgba(255,255,255,.12);
}

.secondary-btn{
  margin-top:14px;

  background:
    rgba(255,255,255,0.08);

  color:white;

  border:
    1px solid rgba(255,255,255,0.08);
}

.secondary-btn:hover{
  background:
    rgba(255,255,255,0.12);
}

#errorText{
  margin-top:20px;

  text-align:center;

  color:#ff7b7b;

  min-height:22px;

  font-size:14px;
  font-weight:650;

  line-height:1.45;
}

@media(max-width:520px){
  .login-card{
    padding:32px 22px;
    border-radius:26px;
  }

  h1{
    font-size:28px;
  }

  .name-grid{
    grid-template-columns:1fr;
    gap:0;
  }

  .login-page{
    align-items:flex-start;
    padding-top:30px;
  }
}