@font-face {
  font-family: "Atyp Display";
  src: url("/fonts/AtypDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atyp Text";
  src: url("/fonts/AtypText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --aura-red: #f85041;
  --aura-peach: #feccba;
  --aura-mist: #bacadd;
  --aura-blue: #536ab7;
  --aura-deep-blue: #1c2b5e;

  --bg: #040404;
  --surface: rgba(12, 12, 15, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --field: rgba(255, 255, 255, 0.03);
  --ink: #f5f5f3;
  --ink-soft: rgba(245, 245, 243, 0.7);
  --danger: #ff9b8d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Atyp Text", "Atyp Text Regular", "Inter", "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(248, 80, 65, 0.6) 0, rgba(248, 80, 65, 0) 34%),
    radial-gradient(circle at 84% 88%, rgba(83, 106, 183, 0.58) 0, rgba(83, 106, 183, 0) 40%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(460px, 100%);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 28px 24px 22px;
  animation: show-up 430ms ease both;
}

.login-wordmark {
  margin: 0;
  font-family: "Atyp Display", "Atyp Display Light", "Atyp Text", "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(2.7rem, 8vw, 3.8rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
}

.login-eyebrow {
  margin: 4px 0 8px;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 8px;
  font-family: "Atyp Display", "Atyp Display Light", "Atyp Text", "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 6.3vw, 3rem);
  line-height: 0.96;
}

.login-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 380px;
  line-height: 1.34;
}

.login-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  min-height: 48px;
  padding: 0 13px;
  font-size: 0.97rem;
  font-weight: 400;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: rgba(254, 204, 186, 0.76);
  box-shadow: 0 0 0 4px rgba(254, 204, 186, 0.14);
}

.submit-button {
  margin-top: 2px;
  border: none;
  border-radius: 12px;
  min-height: 50px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  background:
    radial-gradient(120% 160% at 15% 20%, rgba(83, 106, 183, 0.84), rgba(83, 106, 183, 0) 56%),
    radial-gradient(140% 170% at 85% 75%, rgba(248, 80, 65, 0.92), rgba(248, 80, 65, 0) 60%),
    linear-gradient(128deg, var(--aura-deep-blue), #8e617e 70%, var(--aura-red));
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(248, 80, 65, 0.24);
}

.submit-button:active {
  transform: translateY(0);
}

.login-error {
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 0.84rem;
}

.hidden {
  display: none;
}

@media (max-width: 560px) {
  .login-card {
    border-radius: 18px;
    padding: 22px 16px 18px;
  }
}

@keyframes show-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
