@charset "utf-8";
/* 무단선점 알림 서비스 — 소개 페이지 CTA + 마이페이지 신청/해지 폼·목록. front 자체 스타일. */

/* ===== 소개 페이지 ===== */
.alert_service_intro {
  padding: 60px 20px 80px;
  text-align: center;
}
.alert_service_desc {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}
.alert_service_cta {
  margin-top: 20px;
}
.btn_alert_apply {
  display: inline-block;
  min-width: 320px;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #1b3a8b;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn_alert_apply:hover {
  background: #14306f;
}

/* ===== 마이페이지 신청/해지 ===== */
.alert_apply_box {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid #e0e4ec;
  border-radius: 8px;
  background: #fafbfe;
}
.alert_apply_box h4 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #1b3a8b;
}
.alert_email_option {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.alert_email_option label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}
.alert_email_input {
  width: 320px;
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ccd2df;
  border-radius: 6px;
}
.alert_appno_row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.alert_appno_row input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ccd2df;
  border-radius: 6px;
}
.alert_appno_actions {
  margin: 12px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn_alert_add,
.btn_alert_submit,
.btn_alert_cancel {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn_alert_add {
  color: #1b3a8b;
  background: #fff;
  border-color: #1b3a8b;
}
.btn_alert_submit {
  color: #fff;
  background: #1b3a8b;
}
.btn_alert_submit:disabled {
  background: #a7b0c8;
  cursor: not-allowed;
}
.btn_alert_cancel {
  color: #c0392b;
  background: #fff;
  border-color: #d9a7a1;
}
.alert_hint {
  font-size: 13px;
  color: #888;
}
.alert_status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  border-radius: 12px;
}
.alert_status.applied {
  color: #1b3a8b;
  background: #e7edfb;
}
.alert_status.approved {
  color: #187d3b;
  background: #e2f5e9;
}
.alert_status.canceled {
  color: #7a7a7a;
  background: #ededed;
}

/* 미신청 게이트 — 순수 신청 */
.alert_gate_box {
  padding: 40px 30px;
  text-align: center;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fafbfe;
}
.alert_gate_box h4 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
}
.alert_gate_desc {
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* 알림 요청 이메일(사용자당 1개) 행 */
.alert_email_box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #f7f9fd;
}
.alert_email_label {
  font-weight: 600;
  color: #333;
}
.alert_email_view,
.alert_email_edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.alert_email_value {
  font-weight: 600;
  color: #1b3a8b;
}
.alert_email_empty {
  font-weight: 500;
  color: #b23b3b;
}
.btn_alert_email {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  color: #fff;
  background: #4b6cb7;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

/* 출원번호 — 클릭 시 KIPRIS 상세 모달 */
.alert_appno_link {
  padding: 0;
  color: #1b3a8b;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}
.alert_appno_link:disabled {
  color: #999;
  cursor: wait;
}

/* 내 상표명 검색 — 알림 요청 이메일 박스에 빌트인 */
.alert_name_search_inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.alert_name_search_inline input {
  width: 200px;
  max-width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ccd2df;
  border-radius: 6px;
}
.btn_alert_search {
  width: 40px;
  height: 40px;
  font-size: 16px;
  color: #fff;
  background: #1b3a8b;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.btn_alert_search:disabled {
  background: #a7b0c8;
  cursor: not-allowed;
}

/* ── 알림 서비스 소개(미로그인/미신청 게이트) — 설명 + 이용 절차 3단계 ── */
.alert_intro {
  text-align: left;
  max-width: 640px;
}
.alert_intro .alert_intro_lead {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 6px 0 10px;
  line-height: 1.6;
}
.alert_intro .alert_gate_desc {
  text-align: left;
  line-height: 1.65;
}
.alert_intro_steps {
  list-style: none;
  margin: 16px 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.alert_intro_steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 12px 14px;
}
.alert_intro_step_no {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b53dd;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert_intro_step_tit {
  font-weight: 700;
  color: #111827;
}
.alert_intro_step_desc {
  color: #5a6472;
  font-size: 13px;
  line-height: 1.5;
}
.alert_intro_note {
  color: #8a94a6;
  font-size: 12.5px;
  margin: 8px 0 14px;
}

/* ===== [단계 C] 이메일 인증(OTP) ===== */
/* 이메일 입력 / OTP 입력 박스 */
.alert_auth_box {
  margin: 18px 0 20px;
  padding: 18px 20px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f7f9fd;
}
.alert_auth_row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.alert_auth_label {
  font-weight: 600;
  color: #333;
  margin-right: 4px;
}
/* ★ box-sizing 필수 — common.css 의 form 리셋은 input[type=tel|text|number|password] 만 잡아
   type="email" 인 이 입력창은 기본값(content-box)이다. 그러면 min-width:220px 가 콘텐츠 폭에
   걸려 실폭이 220+24(padding)+2(border)=246px 이 되고, 320px 화면에서 auth_box 콘텐츠 폭
   (238px)을 8px 넘어 박스 밖으로 삐져나간다. 아래 .alert_auth_otp 와 동일하게 border-box 고정. */
.alert_auth_email {
  flex: 1;
  min-width: 220px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ccd2df;
  border-radius: 6px;
  box-sizing: border-box;
}
.alert_auth_otp {
  width: 180px;
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  letter-spacing: 4px;
  font-size: 16px;
  border: 1px solid #ccd2df;
  border-radius: 6px;
  box-sizing: border-box;
}
.alert_auth_timer {
  min-width: 56px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1b3a8b;
}
.alert_auth_timer.expired {
  color: #c0392b;
}
.alert_auth_sent {
  margin: 0 0 12px;
  color: #333;
  font-size: 14px;
}
.alert_auth_expired {
  color: #c0392b;
}

/* 인증 목적 배지(등록/조회 · 조회 전용) */
.alert_purpose_tab {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #1b3a8b;
  border-radius: 14px;
}

/* 토큰 남은시간 타임라인(게이지 + mm:ss + 연장) */
.alert_token_bar {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
}
.alert_token_info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.alert_token_label {
  font-weight: 600;
  color: #333;
}
.alert_token_time {
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: #1b3a8b;
}
.alert_logout {
  margin-left: auto;
}
.alert_token_gauge {
  margin-top: 10px;
  height: 8px;
  border-radius: 4px;
  background: #e7ecf5;
  overflow: hidden;
}
.alert_token_gauge > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b53dd, #1b3a8b);
  border-radius: 4px;
  transition: width 1s linear;
}

/* 세션 연장 확인 모달(ExtendModal — 공용) */
.extend_modal_dim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}
.extend_modal {
  min-width: 320px;
  max-width: 90%;
  padding: 28px 26px 22px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.extend_modal_msg {
  margin: 0 0 20px;
  font-size: 16px;
  color: #222;
}
.extend_modal_actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ===== 반응형 방어(좁은 폭 붕괴 차단) — alert.css 는 원래 @media 가 없어 데스크탑 폭 고정이었다.
   인증·등록·검색·서비스등록 화면의 고정폭 요소가 모바일에서 넘치지 않게 방어한다. ===== */
@media (max-width: 480px) {
  /* 소개 CTA — min-width:320px 가 소형 폰(≤360)에서 넘치던 것을 전폭으로. */
  .btn_alert_apply {
    min-width: 0;
    width: 100%;
  }
  /* 출원번호 신청 행/버튼 — 좁은 폭에서 입력+버튼이 자연스럽게 줄바꿈. */
  .alert_appno_row,
  .alert_appno_actions {
    flex-wrap: wrap;
  }
  .alert_appno_row input {
    flex: 1 1 100%;
    /* input 고유폭(size=20 ≈ 365px)이 flex 자동 최소 크기(min-width:auto)로 걸려
       320~360px 폭에서 우측이 잘리던 것을 해제. */
    min-width: 0;
  }
  /* 내 상표명 검색 인라인 — margin-left:auto 해제, 한 줄 전폭으로. */
  .alert_name_search_inline {
    margin-left: 0;
    width: 100%;
  }
  .alert_name_search_inline input {
    flex: 1 1 auto;
    width: auto;
  }
  /* 세션 연장 확인 모달 — 좌우 버튼이 좁으면 세로로. */
  .extend_modal_actions {
    flex-direction: column;
  }
}
