/* auth.css */
body {
  overflow-x: hidden;
}

.auth-container {
  width: min(100%, 460px);
  margin: 70px auto;
  padding: 34px;
  position: relative;
  background: linear-gradient(180deg, rgba(4, 14, 36, 0.84), rgba(2, 8, 22, 0.94));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  clip-path: polygon(
    16px 0%,
    100% 0%,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    0% 100%,
    0% 16px
  );
}

.auth-container::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(49,232,255,0.06),
    0 0 18px rgba(49,232,255,0.08),
    0 4px 30px rgba(0,0,0,0.45);
  pointer-events: none;
}

.auth-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--hud-cyan);
  border-left: 2px solid var(--hud-cyan);
  box-shadow: 0 0 10px var(--hud-cyan-glow);
  pointer-events: none;
}

.auth-container h1 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  text-align: center;
  color: #fff;
}

.auth-container p {
  text-align: center;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: .82rem;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-container label {
  font-weight: 700;
  color: var(--hud-cyan);
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(2,8,22,0.92);
  color: #fff;
  clip-path: polygon(
    8px 0%, 100% 0%,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0% 100%, 0% 8px
  );
}

.auth-container input:focus {
  border-color: rgba(49,232,255,0.72);
  box-shadow: 0 0 0 4px rgba(49,232,255,0.12);
}

.auth-container button[type="submit"] {
  margin-top: 8px;
  min-height: 52px;
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(31,82,110,0.9), rgba(4,28,48,0.95));
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  clip-path: polygon(
    10px 0%, 100% 0%,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0% 100%, 0% 10px
  );
}

.auth-container button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  border: 1px solid rgba(49,232,255,0.4);
  box-shadow: 0 0 16px rgba(49,232,255,0.15), inset 0 0 14px rgba(49,232,255,0.05);
  pointer-events: none;
}

.auth-container button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(49,232,255,0.18);
}

.auth-container .links {
  margin-top: 10px;
  text-align: center;
}

.auth-container .links a {
  color: var(--hud-cyan);
  font-weight: 600;
}

.auth-container .links a:hover {
  color: #dff3ff;
}

.auth-container .alert {
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .auth-container {
    width: calc(100% - 24px);
    margin: 30px auto;
    padding: 24px;
  }

  .auth-container h1 {
    font-size: 1.45rem;
  }
}
