@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg-1: #f4efe6;
  --bg-2: #d9ebf6;
  --ink: #192934;
  --ink-soft: #355466;
  --card: #ffffff;
  --accent: #1f7492;
  --accent-2: #dd6f2f;
  --error: #b42318;
  --muted: #5a6e7c;
  --border: #d4e0e8;
  --shadow: 0 30px 70px rgba(21, 45, 60, 0.2);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(31, 116, 146, 0.2), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(221, 111, 47, 0.2), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 20px;
}

.bg-aurora,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-aurora {
  background:
    radial-gradient(circle at 24% 72%, rgba(31, 116, 146, 0.16), transparent 36%),
    radial-gradient(circle at 76% 68%, rgba(221, 111, 47, 0.16), transparent 34%);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(25, 41, 52, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 41, 52, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 50%, #000000, transparent 78%);
}

.auth-layout {
  width: min(1020px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(212, 224, 232, 0.8);
}

.notice-panel {
  padding: 40px 36px;
  background:
    linear-gradient(160deg, rgba(31, 116, 146, 0.96), rgba(31, 116, 146, 0.8)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 10px,
      transparent 10px,
      transparent 22px
    );
  color: #f7fbff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.86;
}

.notice-panel h1 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.lead {
  margin: 0;
  font-size: 1rem;
  max-width: 36ch;
}

.notice-card {
  background: rgba(12, 42, 57, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 14px;
}

.notice-card p {
  margin: 0 0 12px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.notice-card p:last-child {
  margin-bottom: 0;
}

.notice-card a {
  color: #ffffff;
  font-weight: 600;
}

.login-panel {
  padding: 36px 32px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.login-panel h2 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
}

.subtext {
  margin: 8px 0 22px;
  color: var(--muted);
}

.error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  background: #fff4f2;
  color: var(--error);
  font-size: 0.94rem;
}

.field {
  margin-bottom: 13px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 116, 146, 0.16);
}

.field-errors {
  margin: 7px 0 0 18px;
  padding: 0;
  color: var(--error);
  font-size: 0.85rem;
}

button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  margin-top: 8px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), #2890b3);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(31, 116, 146, 0.28);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 116, 146, 0.36);
}

button:active {
  transform: translateY(0);
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 840px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .notice-panel {
    padding: 26px 22px;
  }

  .login-panel {
    padding: 24px 20px 22px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 10px;
  }

  .notice-panel h1,
  .login-panel h2 {
    font-size: 1.6rem;
  }
}
