/* ==============================
   🌐 공통 / 회원가입 / 로그인
============================== */

body {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.auth-container {
  background: #111;
  padding: 3rem;
  border-radius: 16px;
  width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 2rem;
}

.social-login button {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.kakao {
  background: #fee500;
  color: #000;
}
.naver {
  background: #03c75a;
  color: #fff;
}
.google {
  background: #fff;
  color: #333;
}
.phone {
  background: #333;
  color: #fff;
}

.divider {
  margin: 1.5rem 0;
  color: #666;
  font-size: 0.9rem;
  position: relative;
}
.divider::before,
.divider::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 1px;
  background: #333;
  top: 50%;
}
.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}

input {
  width: 90%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: none;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
}

.verification {
  display: flex;
  gap: 0.5rem;
}
.verification input {
  flex: 1;
}
.verification button {
  padding: 0.8rem 1rem;
  background: #444;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.verification button:hover {
  background: #666;
}

.checkbox {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
  color: #bbb;
}

.signup-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  background: #00aef0;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s;
}
.signup-btn:hover {
  background: #0092c8;
}

/* 회원가입 완료 페이지 */
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.success-title {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
}

.success-message {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem;
}

.links {
  margin-top: 1.5rem;
}
.links a {
  color: #999;
  text-decoration: none;
}
.links a:hover {
  color: #fff;
}

.signup-container {
  max-width: 400px;
  margin: 6rem auto;
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  color: #eee;
  text-align: center;
}
.signup-container h2 {
  margin-bottom: 1rem;
}
.signup-container input {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0 1rem;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #222;
  color: #fff;
}
.signup-container button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.signup-container button:hover {
  background: #0066dd;
}
.email-display {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* 회원가입 패스워드 */
#passwordForm input {
  width: 90%;
}

/* 회원가입 정보 및 동의 */
.checkbox > #agree {
  width: 10%;
}
.checkbox > span a {
  color: #00aef0;
  text-decoration: underline;
  cursor: pointer;
}
.checkbox > span a:hover {
  color: #0092c8;
}

/* 모달 스타일 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden {
  display: none !important;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  margin: 0 0 1.5rem 0;
  color: #fff;
  font-size: 1.5rem;
  padding-right: 2rem;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #333;
  color: #fff;
}

.modal-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  color: #ddd;
  line-height: 1.6;
}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.modal-scroll h3 {
  color: #00aef0;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.modal-scroll h3:first-of-type {
  margin-top: 0;
}

.modal-scroll p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.modal-scroll ul {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.modal-scroll li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}