:root {
  --bg: #f6efe5;
  --panel: #fffdf8;
  --text: #2c2722;
  --muted: #5d564f;
  --line: rgba(26, 121, 165, 0.16);
  --accent: #1a79a5;
  --accent-strong: #125b7d;
  --danger: #a4362f;
  --shadow: 0 20px 48px rgba(53, 57, 62, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(145, 210, 236, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(248, 214, 146, 0.24), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
}

main {
  width: min(440px, calc(100vw - 32px));
  margin: 48px auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(53, 57, 62, 0.12);
}

.brand strong {
  display: block;
  font-size: 1.02rem;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.25;
}

p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

label {
  display: block;
  margin-top: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: inherit;
  background: white;
}

input:focus,
select:focus {
  border-color: rgba(26, 121, 165, 0.5);
  outline: 3px solid rgba(26, 121, 165, 0.12);
}

button,
.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.switch {
  margin: 18px 0 0;
  text-align: center;
}

.switch a {
  color: var(--accent-strong);
  font-weight: 800;
}

.message {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #eef8ff;
  color: var(--accent-strong);
  line-height: 1.55;
}

.message.error {
  background: #fff0ef;
  color: var(--danger);
}
