*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Apple SD Gothic Neo', '맑은 고딕', 'Malgun Gothic', sans-serif;
  background: #f5f6fa;
  color: #333;
  min-height: 100vh;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.center-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* 공통 버튼 */
.btn-submit {
  display: inline-block;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: #1557b0;
}
.btn-submit.full-width {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* 결과 카드 (성공/오류/준비중) */
.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.result-card h1 {
  font-size: 22px;
  margin-bottom: 12px;
}
.result-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
}
.result-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.result-card.success .result-icon { color: #34a853; }
.result-card.error   .result-icon { color: #ea4335; }
.result-card.closed  .result-icon { font-size: 40px; }

/* 공통 필드 */
.field {
  margin-bottom: 24px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
}
.field input[type="text"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
}

.required { color: #ea4335; }
.hint {
  font-size: 12px;
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

.loading-msg {
  color: #999;
  font-size: 14px;
  padding: 12px 0;
}

.error-msg {
  color: #ea4335;
  text-align: center;
}

/* 헤더 */
.site-header {
  text-align: center;
  margin-bottom: 40px;
}
.site-header h1 {
  font-size: 26px;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.subtitle {
  color: #777;
  font-size: 14px;
}
.site-footer {
  text-align: center;
  margin-top: 48px;
  color: #aaa;
  font-size: 13px;
}

/* 뒤로가기 버튼 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 16px;
  padding: 8px 14px 8px 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}
.back-link:hover {
  color: #1a73e8;
  border-color: #c4d7f2;
  background: #f0f6ff;
  box-shadow: 0 2px 6px rgba(26,115,232,0.1);
  transform: translateX(-2px);
}
.back-link .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f2f5;
  font-size: 12px;
  line-height: 1;
  transition: background 0.2s;
}
.back-link:hover .back-arrow {
  background: #dbe8fd;
}
