* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.registration-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 40px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  margin: auto;
}

.registration-header {
  text-align: center;
  margin-bottom: 40px;
}

.registration-title {
  font-size: 28px;
  font-weight: 700;
  color: #242424;
  margin-bottom: 10px;
}

.form-group {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
  width: 100%;
}

.form-field.half {
  flex: 1;
}

.form-group.full-width {
  flex-direction: column;
  gap: 10px;
}

.form-field {
  flex: 1;
  position: relative;
}

.form-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #242424;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e6ed;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #257ea2;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
  color: #bdc3c7;
}

.input-with-button {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.input-with-button .form-input {
  flex: 1;
}

.verify-btn,
.duplicate-btn {
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #257ea2;
  color: #257ea2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 80px;
}

/* password show/hide icon wrapper */
.input-with-icon {
  position: relative;
}

.input-with-icon .form-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

/* simple eye icon using SVG data uri; toggles by class */
.password-toggle::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  filter: grayscale(20%);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23777" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z"/><circle cx="12" cy="12" r="3"/></svg>');
}

.password-toggle.is-visible::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23257ea2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.94 10.94 0 0 1 12 20c-7 0-11-8-11-8a21.8 21.8 0 0 1 5.06-6.94"/><path d="M1 1l22 22"/><path d="M9.9 4.24A10.94 10.94 0 0 1 12 4c7 0 11 8 11 8a21.8 21.8 0 0 1-3.16 4.56"/><path d="M14.12 14.12A3 3 0 0 1 9.88 9.88"/></svg>');
}

.wallet-section {
  margin-bottom: 25px;
}

.wallet-label-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.wallet-label {
  font-size: 18px;
  font-weight: 600;
  color: #242424;
  margin-bottom: 15px;
  display: block;
}

.wallet-warning {
  font-size: 14px;
  color: #e74c3c;
  margin-bottom: 15px;
  line-height: 1.4;
}

.wallet-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wallet-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e6ed;
  font-size: 14px;
  background: #fff;
  color: #6c757d;
}

.memo-section {
  margin-bottom: 40px;
}

.memo-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 2px solid #e0e6ed;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.memo-textarea:focus {
  outline: none;
  border-color: #257ea2;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-section {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  background: #c5c5c5;
  color: #fff;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.3s ease;
  width: 352px;
}

.submit-btn.active {
  border: 1px solid #a5c4cc;
  background: linear-gradient(90deg, #ddf1f6, #daf2fd, #e8faff);
  color: #257ea2;
  cursor: pointer;
}

.form-input-error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
}

.form-input-success {
  color: #28a745;
  font-size: 14px;
  margin-top: 5px;
}

.dis_none {
  display: none;
}

/* 약관 섹션 스타일 */
.terms-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.terms-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #257ea2;
  cursor: pointer;
}

.terms-label {
  font-size: 16px;
  color: #242424;
  cursor: pointer;
  line-height: 1.5;
}

.terms-link {
  color: #257ea2;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.terms-link:hover {
  color: #1a5f7a;
}

/* 모달 스타일 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  /* max-width: 600px;
    max-height: 80vh; */
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 100000;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #242424;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #e9ecef;
  color: #495057;
}

.modal-body {
  padding: 24px;
  max-height: 50vh;
  overflow-y: auto;
}

.terms-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #242424;
  margin: 20px 0 10px 0;
}

.terms-content h4:first-child {
  margin-top: 0;
}

.terms-content p {
  font-size: 14px;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 12px;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  text-align: center;
}

.modal-confirm-btn {
  background: #257ea2;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-confirm-btn:hover {
  background: #1a5f7a;
  transform: translateY(-1px);
}

/* 모달 애니메이션 */
.modal-overlay.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.modal-content.show {
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
