button[disabled],
button:disabled,
#submitBtn[disabled] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background-color: #9CA3AF !important;
}

button[disabled]:hover,
button:disabled:hover,
#submitBtn[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
  background-color: #9CA3AF !important;
}

.policy-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

.policy-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.policy-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.policy-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.policy-modal-close:hover {
  background: #F3F4F6;
  color: #111827;
}

.policy-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #374151;
}

.policy-modal-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 24px 0 12px;
}

.policy-modal-body h3:first-child {
  margin-top: 0;
}

.policy-modal-body p {
  margin: 12px 0;
}

.policy-modal-body ul,
.policy-modal-body ol {
  margin: 12px 0;
  padding-left: 24px;
}

.policy-modal-body li {
  margin: 8px 0;
}

.policy-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .policy-modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .policy-modal-header,
  .policy-modal-body,
  .policy-modal-footer {
    padding: 16px;
  }
}
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
}

.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

/* 탭 영역 */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gray-200);
}

.auth-tab {
    padding: 18px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 1px solid var(--primary);
    cursor: pointer;
    /* border-bottom: 2px solid transparent; */
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}

.auth-tab.active {
    color: var(--primary);
    border: 1px solid var(--primary);
    border-bottom: none;
    background: var(--primary-light);
    /* border-bottom: 2px solid var(--primary); */
    border-radius: 24px 0 0 0;
}

.auth-tab:hover:not(.active) {
  background: var(--gray-50);
  color: var(--gray-700);
}

/* 본문 */
.auth-body {
  padding: 32px;
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.auth-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.kakao-icon {
  width: 22px;
  height: 22px;
  background: #3C1E1E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #FEE500;
  font-weight: 900;
}

.terms-box {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.terms-all {
  font-weight: 700;
  color: var(--gray-800);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 12px;
}

.pw-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  margin-top: 6px;
  overflow: hidden;
}

.pw-strength-bar {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.3s, background 0.3s;
}

/* 푸터 */
.auth-footer {
  text-align: center;
  padding: 20px 32px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-500);
  background: var(--gray-50);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}