/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #21272a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Common components */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
  background-color: #1e1e1e;
  color: white;
}

.btn-primary:hover {
  background-color: #2c2c2c;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 0.75rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: white;
  color: #21272a;
  border: 1px solid #d9d9d9;
}

.btn-google:hover {
  background-color: #f5f5f5;
}

.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #fee500;
  color: #3a1d1d;
  border: 1px solid #e6cf00;
  margin-top: 0.75rem;
}

.btn-kakao:hover {
  background-color: #f6dc00;
}

/* Form elements */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.form-input:focus {
  outline: none;
  border-color: #0f62fe;
  box-shadow: 0 0 0 2px rgb(15 98 254 / 10%);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.checkbox {
  margin-right: 0.5rem;
}

.checkbox-label {
  font-size: 0.75rem;
  color: #697077;
}

/* Auth forms */
.auth-container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.auth-form {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.auth-link {
  font-size: 0.75rem;
  text-align: center;
  color: #697077;
  margin-top: 1rem;
}

.link {
  color: #0f62fe;
}

.divider {
  position: relative;
  margin: 1.5rem 0;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #d9d9d9;
}

.divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.5rem;
  background-color: white;
  font-size: 0.75rem;
  color: #697077;
}

/* 메시지 스타일 */
.error-message,
.success-message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* Responsive utilities */
@media (width <= 768px) {
  .auth-form {
    padding: 1.5rem;
  }
}

/* 약관 모달 스타일 */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0 0 0 / 50%);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
  position: relative;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body h2, .modal-body h3 {
  color: #53B2AC;
  margin-top: 1rem;
}

.modal-body ul {
  padding-left: 1.2rem;  /* 기본값보다 줄이거나 조절 */
  margin-left: 0;
}

.modal-body li {
  margin-bottom: 0.5rem;
}
