:root {
  color-scheme: light;
  --bg-start: #0f172a;
  --bg-mid: #132347;
  --bg-end: #eff4ff;
  --card: rgba(255, 255, 255, 0.94);
  --text: #182033;
  --muted: #667085;
  --line: #d8e0ee;
  --primary: #3157ff;
  --primary-dark: #1d37a8;
  --secondary-bg: #f8fbff;
  --success: #107c41;
  --error: #d92d20;
  --shadow: 0 24px 60px rgba(20, 35, 80, 0.18);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(136, 181, 255, 0.32), transparent 36%),
    linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 42%, var(--bg-end) 100%);
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(320px, 460px);
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 32px 24px;
}

.login-hero {
  color: #f8fbff;
}

.login-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
}

.hero-description {
  max-width: 34rem;
  color: rgba(248, 251, 255, 0.82);
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(248, 251, 255, 0.92);
}

.feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9ec5ff, #ffffff);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.login-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(49, 87, 255, 0.1);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.description {
  margin: 10px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.password-field {
  position: relative;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.inline-action {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 700;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 87, 255, 0.28);
  outline-offset: 2px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkbox input {
  width: 16px;
  height: 16px;
  padding: 0;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.secondary:hover {
  background: var(--secondary-bg);
}

.form-message {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--muted);
  line-height: 1.5;
}

.form-message[data-state="success"] {
  background: rgba(16, 124, 65, 0.1);
  color: var(--success);
}

.form-message[data-state="error"] {
  background: rgba(217, 45, 32, 0.1);
  color: var(--error);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.signup-link {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px;
    border-radius: 20px;
  }

  h1,
  h2 {
    font-size: 28px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    max-width: 420px;
  }

  .login-card {
    width: min(100%, 480px);
  }
}
