:root {
  --auth-bg: #f2f5f6;
  --auth-panel: #ffffff;
  --auth-ink: #172126;
  --auth-muted: #626c72;
  --auth-line: #ccd5d8;
  --auth-accent: #0f6c68;
  --auth-accent-hover: #0b5754;
  --auth-highlight: #e6f1ef;
  --auth-error: #a73d29;
  --auth-error-bg: #fff1ed;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--auth-bg);
  color: var(--auth-ink);
  font-family: "Pretendard Variable", "SUIT Variable", "Apple SD Gothic Neo", sans-serif;
}

.auth-shell {
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  align-items: center;
  gap: 64px;
  padding: 48px 0;
}

.auth-brand {
  min-width: 0;
  padding-left: 28px;
  border-left: 5px solid var(--auth-accent);
}

.auth-brand h1,
.auth-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.auth-brand h1 {
  font-size: 4.2rem;
  line-height: 1.02;
}

.auth-brand > p:last-child {
  margin: 16px 0 0;
  color: var(--auth-muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.auth-kicker {
  margin: 0 0 12px;
  color: var(--auth-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-panel {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-panel);
  box-shadow: 0 18px 48px rgba(23, 33, 38, 0.09);
}

.auth-panel-heading {
  margin-bottom: 28px;
}

.auth-panel h2 {
  font-size: 1.75rem;
}

.auth-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #efb7aa;
  border-radius: 6px;
  background: var(--auth-error-bg);
  color: var(--auth-error);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--auth-ink);
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-highlight);
}

.auth-form button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--auth-accent);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-form button:hover {
  background: var(--auth-accent-hover);
}

.auth-form button:focus-visible {
  outline: 3px solid #8bc0bc;
  outline-offset: 2px;
}

.field-note {
  margin: -4px 0 4px;
  color: var(--auth-muted);
  font-size: 0.8rem;
}

.auth-footnote {
  margin: 24px 0 0;
  color: var(--auth-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .auth-shell {
    width: min(100%, calc(100% - 24px));
    grid-template-columns: 1fr;
    align-content: center;
    gap: 30px;
    padding: 30px 0;
  }

  .auth-brand {
    padding-left: 18px;
  }

  .auth-brand h1 {
    font-size: 2.55rem;
  }

  .auth-panel {
    padding: 24px;
  }
}
