:root {
  color-scheme: light;
  --bg: #edf4ff;
  --bg-accent: #dbe8ff;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(117, 142, 184, 0.24);
  --text: #172033;
  --muted: #61708d;
  --blue-deep: #174dcc;
  --blue-soft: #eff4ff;
  --danger: #d63b57;
  --shadow: 0 24px 80px rgba(37, 76, 158, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 162, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, var(--bg) 48%, var(--bg-accent) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
}

body::before {
  top: 90px;
  right: 8%;
  width: 180px;
  height: 180px;
  background: rgba(81, 141, 255, 0.22);
}

body::after {
  left: 6%;
  bottom: 80px;
  width: 220px;
  height: 220px;
  background: rgba(111, 205, 255, 0.16);
}

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

.hidden {
  display: none;
}

.eyebrow,
.card-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4e79d8;
}

.login-card,
.dashboard {
  width: min(100%, 440px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.dashboard {
  width: min(100%, 920px);
}

.login-head h2,
.dashboard-header h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.subcopy,
.helper-text,
.error-message,
.info-card span {
  color: var(--muted);
}

.subcopy {
  margin: 10px 0 0;
  line-height: 1.6;
}

.login-form {
  margin-top: 28px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(111, 131, 167, 0.26);
  border-radius: 16px;
  outline: none;
  font: inherit;
  color: var(--text);
  background: var(--panel);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input:focus {
  border-color: rgba(46, 107, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.14);
  background: white;
}

.helper-text,
.error-message {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.error-message {
  min-height: 1.4em;
  color: var(--danger);
}

.primary-button,
.secondary-button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-button {
  color: white;
  background: linear-gradient(180deg, #3d79ff, #295fe4);
  box-shadow: 0 18px 30px rgba(41, 95, 228, 0.22);
}

.secondary-button {
  color: var(--text);
  background: var(--blue-soft);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.logout-button {
  width: auto;
  padding: 0 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 24px;
  border: 1px solid rgba(115, 145, 196, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 255, 0.92));
}

.info-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.info-card span {
  display: block;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-card,
  .dashboard {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .login-head h2,
  .dashboard-header h2 {
    font-size: 1.65rem;
  }
}
