/* ==================== 회원가입 스타일 ==================== */
/* 이메일 인증 버튼 */
.email-verify-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
  }
  
  .email-verify-field {
    flex: 1;
  }
  
  .verify-button {
    background: #030712;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    min-width: 102px;
    height: 48px;
  }
  
  .verify-button:hover:not(.disabled) {
    opacity: 0.8;
  }
  
  .verify-button.disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    opacity: 1;
  }
  
  .verify-button.resend {
    background: #030712;
  }
  
  .verify-button.resend:hover {
    opacity: 0.8;
  }
  
  .verify-button.verified {
    background: #6b7280;
    cursor: default;
  }
  
  .verify-button.verified:hover {
    opacity: 1;
  }
  
  /* 인증번호 입력 필드 래퍼 - 가로 배치 */
  .verify-code-wrapper {
    display: flex;
    gap: 8px;
  }
  
  .verify-code-wrapper .input-wrapper {
    flex: 1;
  }
  
  /* 인증번호 타이머 */
  .verify-timer {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #EF4444;
    font-size: 14px;
    font-weight: 500;
  }
  
  /* 인증완료 버튼 - 재전송 버튼과 동일한 크기 */
  .verify-complete-button {
    background: #030712;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    min-width: 102px;
    height: 48px;
  }
  
  .verify-complete-button:hover:not(.disabled) {
    opacity: 0.8;
  }
  
  .verify-complete-button.disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    opacity: 1;
  }
  
  /* 약관 동의 */
  .terms-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0 0 0;
  }
  
  .term-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
  }
  
  .term-all {
    font-weight: 600;
  }
  
  .term-label {
    color: #6B7280;
    font-size: 12px;
    flex: 1;
  }
  
  .term-all .term-label {
    font-size: 14px;
    font-weight: 600;
  }
  
  .term-item:not(.term-all) {
    padding-left: 10px;
  }
  
  .term-link {
    color: #6b7280;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
  }
  
  .term-link:hover {
    opacity: 0.7;
  }
  
  /* ==================== 팝업 스타일 (수정됨) ==================== */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0);
    z-index: 9999;
    visibility: hidden;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .popup-overlay.active {
    visibility: visible;
    background: rgba(3, 7, 18, 0.8);
  }
  
  /* 내용이 짧을 때는 센터, 길 때는 상단 고정 */
  .popup-overlay:not(.overflow-mode) {
    align-items: center !important;
    justify-content: center !important;
  }
  
  .popup-overlay.overflow-mode {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 92px 0 76px 0 !important;
  }
  
  .popup-container {
    background: #ffffff;
    width: 1200px;
    max-width: 90%;
    border-radius: 16px;
    position: relative;
    margin: 0 auto;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  
  .popup-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030712;
    transition: all 0.2s;
    z-index: 10;
  }
  
  .popup-close:hover {
    background: #e5e7eb;
    transform: scale(1.05);
  }
  
  .popup-content {
    width: 100%;
  }
  
  body.popup-open {
    overflow: hidden;
    padding-right: 17px;
  }
  
  body.popup-open .header {
    right: 17px;
  }
  
  /* ==================== 로그인 팝업 스타일 (수정됨) ==================== */
  .login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0);
    z-index: 9999;
    visibility: hidden;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .login-popup-overlay.active {
    visibility: visible;
    background: rgba(3, 7, 18, 0.8);
  }
  
  /* 내용이 짧을 때는 센터, 길 때는 상단 고정 */
  .login-popup-overlay:not(.overflow-mode) {
    align-items: center !important;
    justify-content: center !important;
  }
  
  .login-popup-overlay.overflow-mode {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 92px 0 76px 0 !important;
  }
  
  .login-popup-container {
    background: #ffffff;
    width: 588px;
    max-width: 90%;
    border-radius: 16px;
    position: relative;
    padding: 78px;
    margin: 0 auto;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .login-popup-overlay.active .login-popup-container {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  
  /* ==================== 팝업 닫기 애니메이션 제거 ==================== */
  .popup-overlay.closing,
  .login-popup-overlay.closing {
    transition: none !important;
  }
  
  .popup-overlay.closing .popup-container,
  .login-popup-overlay.closing .login-popup-container {
    transition: none !important;
  }

  .signup-text {
    color: #6b7280;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
  }
  
  .signup-link {
    color: #6B7280;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .signup-link:hover {
    opacity: 0.7;
  }