:root{
  --auth-primary:#78b5e3;
  --auth-primary-soft:#eaf5ff;
  --auth-text:#111827;
  --auth-muted:#6b7280;
  --auth-border:#e5e7eb;
  --auth-bg:#f6f8fb;
  --auth-card:#ffffff;
  --auth-danger:#ff6666;
  --auth-shadow: 0 18px 60px rgba(17,24,39,.08);
  --auth-radius: 18px;
}


/* 공통 */
.auth-wrap {
    max-width: 100%;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.auth-card{
  max-width: 520px;
  margin: 0 auto;
  background: var(--auth-card);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  padding: 34px 28px;
}

.auth-box {
    width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.auth-box.wide {
    width: 640px;
}

.auth-title {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.auth-desc {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.auth-error {
    background: #ffecec;
    color: #d33;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* 입력 */
.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.auth-box input:focus {
    border-color: #78b5e3;
    outline: none;
}

/* 버튼 */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #78b5e3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5fa4d6;
}

/* ===== LOGIN PAGE ===== */
.login-card {
    width: 440px;
    background: #fff;
    border-radius: 16px;
    padding: 44px 36px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    border: 1px solid #f0f0f0;
}
.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}
.login-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Alert */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.login-alert--warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}
.login-alert-icon {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1.4;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
}
.login-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: #fafafa;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-field input:focus {
    border-color: #78b5e3;
    box-shadow: 0 0 0 3px rgba(120,181,227,.15);
    background: #fff;
}
.login-field input::placeholder {
    color: #bbb;
}
.login-btn {
    width: 100%;
    padding: 14px;
    background: #78b5e3;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 4px;
}
.login-btn:hover {
    background: #5fa4d6;
}
.login-btn:active {
    transform: translateY(1px);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}
.login-divider span {
    padding: 0 16px;
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

/* Naver */
.login-btn-naver {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #03C75A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
}
.login-btn-naver:hover {
    background: #02b351;
    color: #fff;
}
.login-btn-naver:active {
    transform: translateY(1px);
}

/* Footer links */
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.login-footer a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.login-footer a:hover {
    color: #78b5e3;
}
.login-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
}

@media (max-width: 480px) {
    .login-card {
        width: 100%;
        padding: 32px 24px 28px;
        border-radius: 12px;
    }
}

/* 링크 (기존 호환) */
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #78b5e3;
    text-decoration: none;
    margin: 0 5px;
}

/* Step 표시 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    font-size: 14px;
}

.step-indicator span {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    color: #999;
}

.step-indicator span.active {
    color: #78b5e3;
    border-color: #78b5e3;
    font-weight: 600;
}

/* 약관 */
.agree-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.agree-item label {
    font-size: 15px;
}

.required {
    color: #ff6666;
}































.auth-alert{
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 14px 0 16px;
}
.auth-alert--error{
  background: rgba(255,102,102,.14);
  border: 1px solid rgba(255,102,102,.28);
  color: #b42318;
}
.auth-alert--success{
  background: rgba(52,199,89,.12);
  border: 1px solid rgba(52,199,89,.35);
  color: #166534;
}

.auth-form{
  margin-top: 10px;
}
.auth-field{
  margin: 14px 0;
}
.auth-label{
  display:block;
  font-size: 13px;
  color: var(--auth-muted);
  margin-bottom: 8px;
}
.auth-label .req{
  color: var(--auth-danger);
  margin-left: 4px;
  font-weight: 700;
}
.auth-hint{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(107,114,128,.9);
}

.auth-input, .auth-select, .auth-textarea{
  width: 100%;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.auth-input:focus, .auth-select:focus, .auth-textarea:focus{
  border-color: rgba(120,181,227,.75);
  box-shadow: 0 0 0 6px rgba(120,181,227,.18);
}
.auth-input.is-invalid, .auth-select.is-invalid{
  border-color: rgba(255,102,102,.55);
  box-shadow: 0 0 0 6px rgba(255,102,102,.12);
}

.auth-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 16px;
}
.auth-check{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 13px;
}
.auth-check input{ width: 16px; height: 16px; }

.auth-btn{
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, filter .15s ease;
}
.auth-btn:active{ transform: translateY(1px); }

.auth-btn--primary{
  background: var(--auth-primary);
  color: #fff;
}
.auth-btn--primary:hover{ filter: brightness(.98); }

.auth-btn--ghost{
  background: transparent;
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
}
.auth-btns{
  display:flex;
  gap: 10px;
  margin-top: 18px;
}
.auth-btns .auth-btn{ width: 50%; }

.auth-links{
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--auth-muted);
}
.auth-links a{
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 700;
}
.auth-dot{ margin: 0 8px; color: #cbd5e1; }

/* ===== Step UI ===== */
.auth-steps{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 18px;
  position: relative;
}
.auth-steps:before{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  top: 22px;
  height: 2px;
  background: rgba(229,231,235,.9);
  z-index: 0;
}
.auth-step{
  position: relative;
  z-index: 1;
  width: 33.33%;
  text-align:center;
}
.auth-step .circle{
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid rgba(229,231,235,.9);
  display:flex;
  align-items:center;
  justify-content:center;
  color: #9ca3af;
  font-weight: 800;
}
.auth-step .label{
  font-size: 12px;
  color: var(--auth-muted);
}
.auth-step.is-active .circle,
.auth-step.is-done .circle{
  background: var(--auth-primary);
  border-color: rgba(120,181,227,.75);
  color: #fff;
}
.auth-step.is-active .label{
  color: var(--auth-primary);
  font-weight: 800;
}
.auth-step.is-done .label{
  color: rgba(17,24,39,.7);
  font-weight: 700;
}

/* ===== Two-column form table 느낌 ===== */
.auth-grid{
  display:grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
  margin-top: 14px;
}
@media (max-width:560px){
  .auth-card{ padding: 26px 18px; }
  .auth-grid{ grid-template-columns: 1fr; }
}
.auth-grid .glabel{
  color: var(--auth-muted);
  font-size: 13px;
  padding-top: 14px;
}
.auth-grid .glabel .req{
  color: var(--auth-danger);
  margin-left: 4px;
  font-weight: 800;
}






/* ===== AGREE / TERMS CARDS (Step 1) ===== */
.agree-group {
    background: #f8fafc;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 20px;
}

.agree-all-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--auth-primary-soft);
    cursor: pointer;
    user-select: none;
}

.agree-all-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--auth-text);
}

.agree-divider {
    height: 1px;
    background: #dde3eb;
}

.agree-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--auth-border);
    background: #fff;
    gap: 12px;
    transition: background .12s;
}

.agree-card:hover {
    background: #fafbfc;
}

.agree-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
    user-select: none;
}

/* 커스텀 체크박스 */
.agree-checkbox-wrap {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.agree-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.agree-checkmark {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    background: #fff;
    transition: background .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agree-checkmark::after {
    content: "";
    width: 5px;
    height: 9px;
    border: 2.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0;
    transition: opacity .1s ease;
}

.agree-checkbox-wrap input:checked ~ .agree-checkmark {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.agree-checkbox-wrap input:checked ~ .agree-checkmark::after {
    opacity: 1;
}

.agree-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--auth-text);
}

.agree-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(120,181,227,.15);
    color: var(--auth-primary);
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.agree-view-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    color: var(--auth-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}

.agree-view-btn:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    background: var(--auth-primary-soft);
}

@media (max-width: 480px) {
    .agree-card { flex-wrap: wrap; gap: 10px; }
    .agree-row  { flex: 1 1 100%; }
    .agree-view-btn { margin-left: 34px; }
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.modal-scroll {
    overflow-y: auto;
    max-height: 60vh;
    font-size: 14px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}












/* ===== REGISTER STEP 2 ===== */
.reg-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
}

.reg-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--auth-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.reg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

@media (max-width: 520px) {
    .reg-row-2 { grid-template-columns: 1fr; }
}

/* 캡차 */
.reg-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-captcha-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.reg-captcha-img-wrap img {
    display: block;
    width: 130px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--auth-border);
    background: #fff;
}

.reg-captcha-refresh {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--auth-border);
    background: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    color: var(--auth-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, color .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.reg-captcha-refresh:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

@media (max-width: 480px) {
    .reg-captcha { flex-direction: column; align-items: flex-start; }
}

/* ===== CAPTCHA ===== */
.auth-captcha{
  display:flex;
  align-items:center;
  gap: 10px;
}
.auth-captcha img{
  width: 120px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--auth-border);
  background: #fff;
}
.auth-captcha button{
  border: 1px solid var(--auth-border);
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  cursor:pointer;
  color: var(--auth-muted);
  font-size: 12px;
}
.auth-captcha button:hover{
  border-color: rgba(120,181,227,.55);
  box-shadow: 0 0 0 6px rgba(120,181,227,.12);
}

/* ===== Modal(약관 자세히보기) 공용 ===== */
.auth-modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,.55);
  padding: 18px;
  z-index: 9999;
}
.auth-modal.is-open{ display:flex; }
.auth-modal .box{
  width: min(860px, 100%);
  max-height: 86vh;
  overflow:auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--auth-shadow);
  border: 1px solid rgba(229,231,235,.9);
}
.auth-modal .box-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--auth-border);
}
.auth-modal .box-head h3{
  margin:0;
  font-size: 16px;
  color: var(--auth-text);
}
.auth-modal .close{
  border: none;
  background: transparent;
  font-size: 24px;
  cursor:pointer;
  color: var(--auth-muted);
}
.auth-modal .box-body{
  padding: 18px;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}

/* ===== REGISTER STEP 3 ===== */
.reg-complete-card {
    margin-top: 20px;
    padding: 36px 28px;
    background: #f8fafc;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    text-align: center;
}

.reg-complete-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.reg-complete-icon--check {
    background: rgba(120,181,227,.15);
    color: var(--auth-primary);
}

.reg-complete-icon--mail {
    background: rgba(120,181,227,.15);
    color: var(--auth-primary);
}

.reg-complete-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--auth-text);
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

.reg-complete-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.9;
    margin: 0;
}

.reg-complete-hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--auth-muted);
}

/* ===== MY PAGE ===== */
.mypage-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
.mypage-inner{
  display: flex;
  gap: 40px;
}

/* Sidebar */
.mypage-sidebar{
  flex-shrink: 0;
  width: 220px;
}
.mypage-title{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--auth-text);
}
.mypage-menu{
  list-style: none;
  padding: 0;
  margin: 0;
}
.mypage-menu li{
  margin-bottom: 4px;
}
.mypage-menu a{
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--auth-muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.mypage-menu a:hover{
  background: var(--auth-primary-soft);
  color: var(--auth-primary);
}
.mypage-menu a.is-active{
  background: var(--auth-primary);
  color: #fff;
  font-weight: 700;
}

/* Content */
.mypage-content{
  flex: 1;
  min-width: 0;
  background: var(--auth-card);
  border: none;
  border-radius: var(--auth-radius);
  box-shadow: none;
  padding: 36px 32px;
}
.mypage-content h3{
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--auth-text);
}

/* Mobile */
@media (max-width: 768px){
  .mypage-inner{
    flex-direction: column;
    gap: 24px;
  }
  .mypage-sidebar{
    width: 100%;
  }
  .mypage-menu{
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }
  .mypage-menu li{
    margin-bottom: 0;
  }
  .mypage-menu a{
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 14px;
  }
  .mypage-content{
    padding: 24px 18px;
  }
}

/* ===== MOBILE SIDEBAR AUTH CARD ===== */
.cnhub-mobile-auth {
  margin: 0 16px 2px;
  padding: 6px 10px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cnhub-mauth__greeting {
  margin: 0;
  font-size: 12px;
  opacity: .7;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cnhub-mauth__btn {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.9);
  color: #1a3a5c !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.cnhub-mauth__btn:hover {
  background: #fff;
}
.cnhub-mauth__link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  opacity: .65;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
.cnhub-mauth__link:hover {
  opacity: 1;
}

/* ===== TOP BAR AUTH LINKS ===== */
.cnhub-topbar-auth {
  margin-left: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: bold;
  padding-left: 16px;
}
.cnhub-topbar-auth a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  opacity: 0.85;
  transition: opacity .15s;
}
.cnhub-topbar-auth a:hover {
  opacity: 1;
  text-decoration: underline;
}
.cnhub-topbar-auth .cnhub-sep {
  opacity: 0.4;
  margin: 0 2px;
}