@charset "UTF-8";

/* ========================================
   Auth Page Styles
   ======================================== */

/* Login Page */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #666;
  font-size: 16px;
}

/* Login Box */
.login-box h3 {
  margin: 0 0 25px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: #5e42ec;
}

.login-input::placeholder {
  color: #999;
}

.login-options {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.login-btn,
.signup-btn {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.login-btn {
  background: #3498db;
  color: #fff;
}

.login-btn:hover {
  background: #2f88c3;
}

.signup-btn {
  background: #27ae60;
  color: #fff;
}

.signup-btn:hover {
  background: #218838;
}

.login-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

.login-links a {
  color: #666;
  text-decoration: none;
}

.login-links span {
  margin: 0 10px;
  color: #ccc;
}

/* Login After */
.login-after {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-header-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.user-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-name {
  font-size: 13px;
}

.user-name span {
  font-size: 16px;
  font-weight: 700;
}

.user-id {
  font-size: 13px;
}

.user-info-link,
.charge-link {
  display: flex;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
}

.user-info-link svg,
.charge-link svg {
  fill: #6c5ce0;
}

.user-info-link span,
.charge-link span {
  color: #6c5ce0;
  text-decoration: underline;
}

.last-login {
  font-size: 12px;
  color: #666;
}

.count-row-label {
  font-size: 13px;
  color: #7b7b7b;
}

.user-count-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.user-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-amount {
  font-size: 18px;
  font-weight: 700;
}

.send-count-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f3f3f3;
  padding: 12px;
  border-radius: 10px;
}

.send-count-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
}

.send-count-label {
  font-size: 13px;
  color: #7b7b7b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.send-count-value {
  font-size: 18px;
  font-weight: 700;
}

.send-count-value span {
  font-size: 14px;
}

.logout-btn {
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover {
  background: #dc3545;
  color: white;
  border: 1px solid #dc3545;
}

/* ========================================
   Signup Page Styles
   ======================================== */

/* 회원가입 페이지 전용 스타일 */
.signup-container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 700px;
  width: 100%;
  max-width: 600px;
  min-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* 회원가입 페이지 타이틀 */
.new-page-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

/* 회원가입 단계 표시 스타일 */
.signup-step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  min-height: 50px;
  height: 50px;
  align-items: center;
  width: 100%;
}

.signup-step {
  flex: 1;
  text-align: center;
  padding: 15px 10px;
  background: #f8f9fa;
  color: #6c757d;
  border-radius: 8px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.signup-step.active {
  background: #6c5ce0;
  color: white;
  animation: stepPulse 2s ease-in-out infinite;
}

.signup-step.completed {
  background: #6c5ce0;
  color: white;
}

.signup-step-number {
  display: block;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
}

.signup-step-title {
  font-size: 14px;
}

/* 회원가입 단계별 컨텐츠 스타일 */
.signup-content {
  display: none;
  animation: signupFadeIn 0.3s ease;
  width: 100%;
  min-height: 580px;
  height: 580px;
  overflow-y: auto;
  position: relative;
}

.signup-content.active {
  display: block;
}

@keyframes signupFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepPulse {
  0% {
    background: #6c5ce0;
    box-shadow: 0 0 0 0 rgba(108, 92, 224, 0.4);
  }

  50% {
    background: #8a7ae8;
    box-shadow: 0 0 0 10px rgba(108, 92, 224, 0);
  }

  100% {
    background: #6c5ce0;
    box-shadow: 0 0 0 0 rgba(108, 92, 224, 0);
  }
}

/* 약관동의 스타일 */
.signup-terms-container {
  max-width: 600px;
  margin: 0 auto;
}

.signup-terms-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px;
  background: #e9ecef;
  border-radius: 8px;
  margin-bottom: 10px;
}

.signup-terms-header h3 {
  margin: 0;
  font-size: 18px;
  transition: color 0.3s ease;
}

.signup-terms-header.checked h3 {
  color: #3498db;
}

.signup-terms-section {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.signup-terms-item {
  border-bottom: 1px solid #e9ecef;
}

.signup-terms-item:last-child {
  border-bottom: none;
}

.signup-terms-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  background: #f8f9fa;
  flex-wrap: wrap;
}

.signup-terms-title-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.signup-terms-title-content span {
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.signup-btn-view {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #495057;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.signup-btn-view:hover,
.signup-btn-view:focus {
  color: #0d6efd;
  outline: none;
}

span.signup-required {
  color: #dc3545;
  margin-left: 0px;
  font-weight: bold;
}

.signup-terms-content {
  display: block;
  padding: 0 20px;
}

.signup-terms-box {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  margin-bottom: 20px;
  font-size: 14px;
}

.signup-terms-box h4 {
  margin-top: 0;
  color: #495057;
}

.signup-terms-box p {
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 10px;
}

/* 체크박스 스타일 */
.signup-checkbox-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.signup-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.signup-checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.signup-checkbox-container input:checked ~ .signup-checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.signup-checkbox-container input:checked ~ .signup-checkmark:after {
  content: '✓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* 본인인증 스타일 */
.signup-auth-container,
.signup-info-container,
.signup-complete-container {
  max-width: 500px;
  margin: 0 auto;
}

.signup-form-group {
  margin-bottom: 20px;
}

.signup-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
  font-size: 13px;
}

.signup-form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.signup-form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.signup-form-group input:read-only {
  background-color: #f8f9fa;
  color: #6c757d;
}

.signup-phone-input-group,
.signup-auth-code-input-group,
.signup-id-input-group {
  display: flex;
  gap: 10px;
}

.signup-phone-input-group input,
.signup-auth-code-input-group input,
.signup-id-input-group input {
  flex: 1;
}

.signup-btn-check {
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid #28a745;
  color: #28a745;
  background: white;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.signup-btn-check:hover {
  background: #28a745;
  color: white;
}

.signup-btn-auth,
.signup-btn-verify,
.signup-btn-primary {
  padding: 12px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.signup-btn-auth:hover,
.signup-btn-verify:hover,
.signup-btn-primary:hover {
  background: #0056b3;
}

.signup-btn-auth:disabled,
.signup-btn-verify:disabled,
.signup-btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.signup-btn-verify.verified {
  background: #6c757d;
  cursor: not-allowed;
}

.signup-timer {
  display: flex;
  align-items: center;
  color: #dc3545;
  font-weight: bold;
  font-size: 14px;
  min-width: 50px;
}

.signup-input-message {
  margin-top: 5px;
  font-size: 12px;
  color: #6c757d;
}

.signup-input-message.success {
  color: #28a745;
}

.signup-input-message.error {
  color: #dc3545;
}

/* 단계 버튼 스타일 */
.signup-step-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.signup-btn-prev,
.signup-btn-next {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-btn-prev {
  background: #6c757d;
  color: white;
}

.signup-btn-prev:hover {
  background: #5a6268;
}

.signup-btn-next {
  background: #007bff;
  color: white;
}

.signup-btn-next:hover {
  background: #0056b3;
}

.signup-btn-next:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.signup-btn-dev {
  width: 100%;
  padding: 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.signup-btn-dev:hover {
  background: #c82333;
}

.signup-btn-main {
  width: 100%;
  padding: 14px;
  background: #9eaca1;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.signup-input-message.success {
  color: #28a745;
  font-size: 12px;
  margin-top: 5px;
}

.signup-input-message.error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
}

/* STEP 1 전용 - 다음단계 버튼 우측 정렬 */
.signup-terms-container .signup-btn-next {
  display: block;
  margin-left: auto;
  margin-right: 0;
}

/* 가입완료 스타일 */
.signup-complete-container {
  text-align: center;
  padding: 50px 20px;
}

.signup-complete-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 30px;
}

.signup-complete-container h3 {
  color: #28a745;
  margin-bottom: 15px;
}

.signup-complete-container p {
  color: #6c757d;
  margin-bottom: 30px;
}

.signup-btn-login {
  padding: 15px 40px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.signup-btn-login:hover {
  background: #0056b3;
}

/* 반응형 */
@media (max-width: 768px) {
  .signup-step-indicator {
    flex-direction: column;
    gap: 10px;
  }

  .signup-step {
    margin: 0;
  }

  .signup-phone-input-group,
  .signup-auth-code-input-group,
  .signup-id-input-group {
    flex-direction: column;
  }

  .signup-step-buttons {
    flex-direction: column;
    gap: 15px;
  }
}
