/* =========================================================
   회원가입 페이지 전용 스타일
   file: /assets/register-page.css
========================================================= */

.register-page,
.register-page * {
  box-sizing: border-box;
}

.register-page {
  margin-top: 42px !important;
  margin-bottom: 78px !important;
  color: #172033;
}

.register-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
  gap: 26px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: stretch;
}

/* ===== Intro ===== */
.register-intro {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 46px 42px;
  border: 1px solid #dfe5f3;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 16%, rgba(65, 84, 210, .16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f6f8ff 58%, #edf1ff 100%);
  box-shadow: 0 18px 42px rgba(30, 41, 90, .08);
}

.register-intro::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(52, 72, 204, .055);
}

.register-intro > * {
  position: relative;
  z-index: 1;
}

.register-kicker {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef1ff;
  color: #364bc2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}

.register-intro h1 {
  margin: 18px 0 14px;
  color: #111827;
  font-size: clamp(30px, 3.7vw, 40px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.045em;
}

.register-brand {
  color: #3348cc;
}

.register-intro > p {
  max-width: 500px;
  margin: 0;
  color: #657186;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.register-benefits {
  display: grid;
  gap: 10px;
  margin-top: 38px;
}

.register-benefits > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid #e3e8f2;
  border-radius: 13px;
  background: rgba(255,255,255,.78);
}

.register-benefits strong {
  flex: 0 0 auto;
  color: #3348cc;
  font-size: 11px;
  font-weight: 900;
}

.register-benefits span {
  color: #465266;
  font-size: 13px;
  font-weight: 800;
}

/* ===== Card ===== */
.register-card {
  padding: 36px 38px;
  border: 1px solid #e3e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(30, 41, 59, .065);
}

.register-card-head {
  margin-bottom: 24px;
}

.register-card-head h2 {
  margin: 12px 0 7px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.register-card-head p {
  margin: 0;
  color: #8791a2;
  font-size: 12px;
  line-height: 1.6;
}

/* ===== Alert ===== */
.register-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  padding: 13px 14px;
  border-radius: 11px;
}

.register-alert.error {
  background: #fff1f2;
  color: #aa3c44;
}

.register-alert > span {
  flex: 0 0 auto;
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbdadd;
  font-size: 11px;
  font-weight: 900;
}

.register-alert p {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
}

/* ===== Form ===== */
.register-form {
  display: grid;
  gap: 16px;
}

.register-field label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.register-field input {
  width: 100%;
  height: 49px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d4dbe6;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.register-field input::placeholder {
  color: #a4adbb;
}

.register-field input:hover {
  border-color: #bdc6d4;
}

.register-field input:focus {
  border-color: #6678e8;
  box-shadow: 0 0 0 3px rgba(68, 84, 210, .09);
}

.register-field input.is-invalid {
  border-color: #d95c63 !important;
  box-shadow: 0 0 0 3px rgba(217, 92, 99, .08);
}

.register-field input.is-valid {
  border-color: #4ba97a !important;
  box-shadow: 0 0 0 3px rgba(75, 169, 122, .07);
}

.register-field small {
  display: block;
  margin-top: 6px;
  color: #9aa4b3;
  font-size: 10px;
}

/* Username */
.username-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 8px;
}

#btn-dup-check {
  width: 100%;
  height: 49px;
  padding: 0;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #f7f9fc;
  color: #455166;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

#btn-dup-check:hover:not(:disabled) {
  border-color: #aeb9e9;
  background: #eef1ff;
  color: #3348cc;
}

#btn-dup-check:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Inline duplicate-check result */
.register-inline-alert {
  display: none;
  align-items: center;
  min-height: 39px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
}

.register-inline-alert.success {
  border-color: #b9e5ca;
  background: #edf9f2;
  color: #176e48;
}

.register-inline-alert.warning {
  border-color: #f3d6aa;
  background: #fff8eb;
  color: #8a5d14;
}

.register-inline-alert.error {
  border-color: #f1c4c8;
  background: #fff1f2;
  color: #aa3c44;
}

/* Submit */
.register-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #3348cc;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 17px rgba(51, 72, 204, .18);
  transition: background .15s ease, opacity .15s ease, transform .15s ease;
}

.register-submit:hover:not(:disabled) {
  background: #2638ad;
}

.register-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.register-submit:disabled {
  background: #b6bdca;
  box-shadow: none;
  cursor: not-allowed;
}

/* Footer */
.register-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid #edf0f4;
}

.register-card-foot span {
  color: #8c96a6;
  font-size: 11px;
}

.register-card-foot a {
  color: #3348cc;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.register-card-foot a:hover {
  text-decoration: underline;
}

/* Shake */
.shake {
  animation: registerShake .18s linear 0s 3;
}

@keyframes registerShake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(2px); }
  50%  { transform: translateX(0); }
  75%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .register-shell {
    grid-template-columns: 1fr;
    max-width: 660px;
  }

  .register-intro {
    min-height: 0;
    padding: 34px 30px;
  }

  .register-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .register-benefits > div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 13px;
  }
}

@media (max-width: 600px) {
  .register-page {
    margin-top: 20px !important;
    margin-bottom: 50px !important;
  }

  .register-shell {
    gap: 14px;
  }

  .register-intro,
  .register-card {
    border-radius: 18px;
  }

  .register-intro {
    padding: 27px 22px;
  }

  .register-intro h1 {
    font-size: 29px;
  }

  .register-intro > p {
    font-size: 14px;
  }

  .register-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 25px;
  }

  .register-benefits > div {
    min-height: 48px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .register-card {
    padding: 28px 22px;
  }

  .register-card-head h2 {
    font-size: 25px;
  }

  .username-row {
    grid-template-columns: 1fr;
  }

  #btn-dup-check {
    height: 43px;
  }
}


/* ===== Password confirmation ===== */
.password-match-guide {
  min-height: 18px;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}

.password-match-guide.success {
  color: #176e48;
}

.password-match-guide.error {
  color: #aa3c44;
}
