/* register.css — aligned with login.css look & feel */

/* =========================
   Layout / Section Shell
   ========================= */
#wrap {}

#wrap section.register-content-section {}

#wrap section.register-content-section .container{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

/* =========================
   Section Title
   ========================= */
#wrap section.register-content-section .container .section-title-box{
  max-width: 430px;   /* 폼과 동일하게 */
  width: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:42px;
}

#wrap section.register-content-section .container .section-title-box .logo-box{
  width:120px;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:24px;
}

#wrap section.register-content-section .container .section-title-box .logo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}

#wrap section.register-content-section .container .section-title-box .title-box{
  width: 100%;       /* ← 중요 */
  margin-top:10px;
  text-align: left;
}

#wrap section.register-content-section .container .section-title-box .title-box span{
  font-family:"SUIT Variable", sans-serif;
  font-weight:700;
  font-size:18px;
  line-height:1;
  letter-spacing:0;
  color:#B70002;
}

#wrap section.register-content-section .container .section-title-box .title-box p{
  margin-top:10px;
  font-family:"SUIT Variable", sans-serif;
  font-weight:300;
  font-size:13px;
  line-height:1;
  letter-spacing:0;
  color:#979797;
}


/* =========================
   Form Container
   ========================= */
#wrap section.register-content-section .container .register-form-box{
  width:100%;
  max-width:430px;
}

/* =========================
   Form Elements
   ========================= */
#wrap section.register-content-section .container .register-form-box form{
  margin-bottom:18px;
}

#wrap section.register-content-section .container .register-form-box form .form-group{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Keep labels accessible but visually hidden (same approach as login) */
#wrap section.register-content-section .container .register-form-box form .form-group label{
  margin-bottom: 8px;
  font-family: "SUIT Variable", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: #2a2a2a;
}

/* Selects */
#wrap section.register-content-section .container .register-form-box form .form-group select.form-select{
  width:100%;
  border:1px solid #ddd;
  border-radius:12px;
  padding:18px 20px;
  outline:none;
  background:#fff;
  font-family:"Archivo", sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1;
  color:#2a2a2a;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%232a2a2a" d="M7 10l5 5 5-5z"/></svg>');
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:18px 18px;
}

#wrap section.register-content-section .container .register-form-box form .form-group select.form-select:focus{
  border:1px solid #FF7F00;
}

#wrap section.register-content-section .container .register-form-box form .form-group select.form-select:disabled{
  background:#f8f8f8;
  color:#aeaeae;
}

/* Helpers for placeholder-like first option */
#wrap section.register-content-section .container .register-form-box form .form-group select.form-select option[disabled],
#wrap section.register-content-section .container .register-form-box form .form-group select.form-select option[value="0"],
#wrap section.register-content-section .container .register-form-box form .form-group select.form-select option[value="X"]{
  color:#aeaeae;
}

/* Error message (mirrors login.css look) */
#wrap section.register-content-section .container .register-form-box form p.error-message{
  font-family:"SUIT Variable", sans-serif;
  font-weight:500;
  font-size:14px;
  line-height:1;
  letter-spacing:-0.25px;
  color:#FF2D2D;
  padding-left:20px;
  opacity:0; /* toggle to 1 when error */
  transition:opacity .4s ease;
  margin-bottom:24px;
}

/* =========================
   Submit Button
   ========================= */
#wrap section.register-content-section .container .register-form-box form .btn.btn-primary{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:18px 0;
  border-radius:300px;
  background:#aeaeae;
  border:none;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:background .4s ease, opacity .2s ease;
}

#wrap section.register-content-section .container .register-form-box form .btn.btn-primary span,
#wrap section.register-content-section .container .register-form-box form .btn.btn-primary{
  font-family:"SUIT Variable", sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1;
  letter-spacing:-0.25px;
  color:#fff;
}

#wrap section.register-content-section .container .register-form-box form .btn.btn-primary:hover{
  background:#979797;
}

/* Enabled state helper (if you toggle via JS) */
#wrap section.register-content-section .container .register-form-box form .btn.btn-primary.is-active{
  background:#FF7F00;
}
#wrap section.register-content-section .container .register-form-box form .btn.btn-primary.is-active:hover{
  background:#e67100;
}

/* =========================
   Username / Welcome (optional block)
   ========================= */
#wrap section.register-content-section .container .register-form-box .user-name-box{
  margin-bottom:18px;
}
#wrap section.register-content-section .container .register-form-box .user-name-box span{
  font-size:18px;
  line-height:1;
  color:#2a2a2a;
}
#wrap section.register-content-section .container .register-form-box .user-name-box span.user-name{
  font-family:"Archivo", sans-serif;
  font-weight:500;
}
#wrap section.register-content-section .container .register-form-box .user-name-box span.welcome-message{
  font-family:"SUIT Variable", sans-serif;
  font-weight:400;
  letter-spacing:-0.8px;
}




/* =========================
   Password Setup Page (ID/PW 발급 완료 화면)
   ========================= */
#wrap section.register-content-section .container .register-form-box form#passwordForm{
  display:flex;
  flex-direction:column;
  gap:12px;
}

#wrap section.register-content-section .container .register-form-box form#passwordForm label{
  position:static; /* 이 화면은 레이블 보이도록 */
  width:auto;
  height:auto;
  margin:6px 2px 2px;
  overflow:visible;
  clip-path:none;
  font-family:"SUIT Variable", sans-serif;
  font-weight:600;
  font-size:14px;
  line-height:1.2;
  color:#2a2a2a;
}

#wrap section.register-content-section .container .register-form-box form#passwordForm input[type="password"]{
  width:100%;
  border:1px solid #ddd;
  border-radius:12px;
  padding:18px 20px;
  outline:none;
  background:#fff;
  font-family:"Archivo", sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1;
  color:#2a2a2a;
}
#wrap section.register-content-section .container .register-form-box form#passwordForm input[type="password"]::placeholder{
  color:#aeaeae;
}
#wrap section.register-content-section .container .register-form-box form#passwordForm input[type="password"]:focus{
  border-color:#FF7F00;
}
#wrap section.register-content-section .container .register-form-box form#passwordForm input[type="password"][disabled]{
  background:#f8f8f8;
  color:#aeaeae;
}

/* Submit Button (ID: submitBtn) */
#wrap section.register-content-section .container .register-form-box form#passwordForm #submitBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:18px 0;
  border-radius:300px;
  background:#aeaeae;
  border:none;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:background .4s ease, opacity .2s ease;
  font-family:"SUIT Variable", sans-serif;
  font-weight:600;
  font-size:16px;
  line-height:1;
  color:#fff;
}
#wrap section.register-content-section .container .register-form-box form#passwordForm #submitBtn:hover{
  background:#979797;
}
#wrap section.register-content-section .container .register-form-box form#passwordForm #submitBtn.is-active{
  background:#FF7F00;
}
#wrap section.register-content-section .container .register-form-box form#passwordForm #submitBtn.is-active:hover{
  background:#e67100;
}

/* Error message spacing (already styled above) */
#wrap section.register-content-section .container .register-form-box form#passwordForm p.error-message{
  margin-top:4px;
  margin-bottom:4px;
}

/* Alert Box (주의 안내) */
#wrap section.register-content-section .container .alert.alert-warning{
  width:100%;
  max-width:464px;
  margin-top:18px;
  background:#FFF4E5;
  border:1px solid #FFD8A8;
  color:#7A4E00;
  border-radius:12px;
  padding:14px 16px;
  font-family:"SUIT Variable", sans-serif;
  font-weight:500;
  font-size:14px;
  line-height:1.45;
}
#wrap section.register-content-section .container .alert.alert-warning p{
  margin:2px 0;
}

/* Minor spacing for the success title + username line */
#wrap section.register-content-section .container .section-title-box{ margin-bottom:28px; }
#wrap section.register-content-section .container .register-form-box .user-name-box{ margin-bottom:12px; }

/* form label 보이게 하기 */
#wrap section.register-content-section .container .register-form-box form .form-group label {
  position: static;
  width: auto;
  height: auto;
  margin: 6px 2px 4px;
  overflow: visible;
  clip-path: none;
  font-family: "SUIT Variable", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: #2a2a2a;
}


/* =========================
   Responsive
   ========================= */
@media (max-width:768px){
  #wrap{ overflow-y:hidden; }

  #wrap section.register-content-section .container .register-form-box{ width:80%; }

  #wrap section.register-content-section .container .section-title-box .logo-box img{ width:80%; }
  #wrap section.register-content-section .container .section-title-box{ width:80%; }

  #wrap section.register-content-section .container .section-title-box .title-box span{ font-size:16px; }

  #wrap section.register-content-section .container .register-form-box form .form-group select.form-select{
    padding:15px 17px;
  }

  #wrap section.register-content-section .container .alert.alert-warning{ max-width:80%; }
}