@import url("./tokens.css");

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

body.auth-body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(191, 221, 20, 0.16), transparent 22%),
    linear-gradient(180deg, #f4f8fc 0%, #eaf1f9 100%);
  color: var(--ed-text);
}

.auth-screen {
  min-height: 100vh;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 420px);
  padding: 1.7rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(205, 220, 235, 0.92);
  box-shadow: 0 24px 48px rgba(16, 37, 61, 0.12);
}

.auth-card__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.auth-card__logo {
  width: 140px;
  height: auto;
}

.auth-card__brand-text {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ed-text-soft);
}

.auth-copy {
  margin-bottom: 1.35rem;
}

.auth-copy__eyebrow {
  display: inline-flex;
  margin-bottom: 0.5rem;
  font-size: 0.74rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ed-text-soft);
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.06;
  font-weight: 800;
}

.auth-copy p {
  margin: 0.45rem 0 0;
  color: var(--ed-text-soft);
  font-size: 0.97rem;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.42rem;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5f7490;
}

.auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0.84rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #cfdded;
  background: #f9fbfe;
  color: var(--ed-text);
  font-size: 0.96rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-field input:focus {
  outline: none;
  background: #fff;
  border-color: #8fb5d8;
  box-shadow: 0 0 0 4px rgba(31, 91, 140, 0.12);
}

.auth-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.auth-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-primary-strong) 100%);
  box-shadow: 0 14px 28px rgba(23, 73, 117, 0.18);
}

.auth-button:hover {
  filter: brightness(0.98);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ed-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-link--muted {
  color: var(--ed-text-soft);
}

@media (max-width: 480px) {
  .auth-screen {
    padding: 0.8rem;
  }

  .auth-card {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .auth-card__logo {
    width: 124px;
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
