@charset "utf-8";

/* =========================================================
   Dplaza 회원가입 공통 스타일
   register.skin.php / register_form.skin.php /
   register_result.skin.php 공통 사용
   ========================================================= */

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

.register-page {
    width: 100%;
    margin: 0;
    padding: 0 0 50px;
    color: #303640;
    font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.35px;
}

.register-page img {
    max-width: 100%;
    vertical-align: middle;
}

.register-page a {
    color: #515963;
    text-decoration: none;
}

.register-page button,
.register-page input,
.register-page select,
.register-page textarea {
    font-family: inherit;
}

/* =========================================================
   상단 제목
   ========================================================= */

.register-heading {
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e5e9;
}

.register-heading__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #ef2448;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.register-heading__title {
    margin: 0;
    color: #20242b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1.3px;
}

.register-heading__description {
    margin: 8px 0 0;
    color: #737b86;
    font-size: 15px;
    line-height: 1.65;
}

/* =========================================================
   회원가입 단계 표시
   ========================================================= */

.register-steps {
    display: flex;
    position: relative;
    width: 100%;
    margin: 0 0 38px;
    padding: 0;
    border: 1px solid #e4e7eb;
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    list-style: none;
}

.register-steps::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16.666%;
    right: 16.666%;
    height: 1px;
    background: #e5e8ec;
    transform: translateY(-50%);
    z-index: 0;
}

.register-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 33.333%;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
    background: #fff;
    text-align: left;
}

.register-step + .register-step {
    border-left: 1px solid #edf0f2;
}

.register-step__number {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dde3;
    border-radius: 50%;
    background: #fff;
    color: #a0a7b0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.register-step__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.register-step__label {
    margin-bottom: 2px;
    color: #a0a7b0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.register-step__title {
    color: #8b929c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.register-step.is-active {
    background: #fff7f8;
}

.register-step.is-active .register-step__number {
    border-color: #ef2448;
    background: #ef2448;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 36, 72, 0.2);
}

.register-step.is-active .register-step__label,
.register-step.is-active .register-step__title {
    color: #ef2448;
}

.register-step.is-complete .register-step__number {
    border-color: #313842;
    background: #313842;
    color: #fff;
}

.register-step.is-complete .register-step__label,
.register-step.is-complete .register-step__title {
    color: #3f4650;
}

/* =========================================================
   공통 카드 및 섹션
   ========================================================= */

.register-card {
    margin-bottom: 24px;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.register-card__header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #eceff2;
    background: #fafbfc;
}

.register-card__heading {
    min-width: 0;
}

.register-card__title {
    margin: 0;
    color: #252a31;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.register-card__description {
    margin: 5px 0 0;
    color: #7c8490;
    font-size: 13px;
    line-height: 1.55;
}

.register-card__badge {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 20px;
    background: #fff0f3;
    color: #ef2448;
    font-size: 11px;
    font-weight: 700;
}

.register-card__body {
    padding: 22px;
}

.register-section-title {
    margin: 0 0 16px;
    color: #252a31;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.register-section-description {
    margin: -8px 0 20px;
    color: #747d88;
    font-size: 13px;
}

/* =========================================================
   안내 박스
   ========================================================= */

.register-guide {
    margin-bottom: 28px;
    padding: 18px 20px;
    border: 1px solid #e5e8ec;
    border-radius: 9px;
    background: #f8f9fa;
}

.register-guide__title {
    margin: 0 0 10px;
    color: #303640;
    font-size: 15px;
    font-weight: 700;
}

.register-guide__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.register-guide__list li {
    position: relative;
    margin-top: 5px;
    padding-left: 13px;
    color: #666e79;
    font-size: 13px;
    line-height: 1.65;
}

.register-guide__list li:first-child {
    margin-top: 0;
}

.register-guide__list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ef2448;
}

/* =========================================================
   약관동의
   ========================================================= */

.register-agreement {
    margin-bottom: 24px;
}

.register-agreement__content,
.register-agreement textarea {
    display: block;
    width: 100%;
    height: 220px;
    min-height: 180px;
    margin: 0;
    padding: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #5c6570;
    font-size: 13px;
    line-height: 1.75;
    resize: vertical;
    overflow-y: auto;
}

.register-agreement__content:focus,
.register-agreement textarea:focus {
    border-color: #aeb6c0;
}

.register-agreement__choice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-top: 15px;
}

.register-radio,
.register-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #515964;
    cursor: pointer;
}

.register-radio input,
.register-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #ef2448;
    cursor: pointer;
}

.register-agreement__notice {
    color: #8a929c;
    font-size: 12px;
}

/* =========================================================
   정보입력 폼
   ========================================================= */

.register-form {
    border-top: 2px solid #303640;
}

.register-form-row {
    display: flex;
    width: 100%;
    min-height: 72px;
    border-bottom: 1px solid #e5e8ec;
}

.register-form-label {
    display: flex;
    flex: 0 0 160px;
    width: 160px;
    align-items: center;
    padding: 18px 20px;
    background: #f8f9fa;
    color: #353b44;
    font-size: 14px;
    font-weight: 700;
}

.register-required {
    display: inline-block;
    margin-right: 6px;
    color: #ef2448;
    font-size: 12px;
    font-weight: 700;
}

.register-form-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 20px;
    background: #fff;
}

.register-field-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.register-input,
.register-select,
.register-page input.m_text,
.register-page input.m_text2,
.register-page input[type="text"],
.register-page input[type="password"],
.register-page input[type="email"],
.register-page input[type="tel"],
.register-page select {
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d6dbe1;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #303640;
    font-size: 14px;
    line-height: 40px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.register-page input.m_text2,
.register-page input[readonly],
.register-page input[disabled] {
    background: #f1f3f5 !important;
    color: #7f8791;
}

.register-input:focus,
.register-select:focus,
.register-page input.m_text:focus,
.register-page input[type="text"]:focus,
.register-page input[type="password"]:focus,
.register-page input[type="email"]:focus,
.register-page input[type="tel"]:focus,
.register-page select:focus {
    border-color: #ef2448;
    box-shadow: 0 0 0 3px rgba(239, 36, 72, 0.09);
}

.register-input--small {
    width: 150px;
}

.register-input--medium {
    width: 260px;
}

.register-input--large {
    width: 420px;
    max-width: 100%;
}

.register-input--full {
    width: 100%;
}

.register-field-help {
    margin: 8px 0 0;
    color: #858d97;
    font-size: 12px;
    line-height: 1.55;
}

.register-field-help.is-warning {
    color: #ef2448;
}

.register-choice-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    color: #626b76;
    font-size: 13px;
}

.register-address {
    display: grid;
    gap: 8px;
    max-width: 520px;
}

.register-address__zip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.register-email {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.register-email__at {
    color: #7a828c;
    font-weight: 700;
}

.register-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.register-captcha img {
    max-width: 180px;
    height: auto;
    border: 1px solid #dfe3e7;
    border-radius: 5px;
    background: #fff;
}

.register-text-link {
    color: #616a75;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.register-text-link:hover {
    color: #ef2448;
}

/* =========================================================
   공통 버튼
   ========================================================= */

.register-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.register-btn {
    display: inline-flex;
    min-width: 126px;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.register-btn:hover {
    transform: translateY(-1px);
}

.register-btn:active {
    transform: translateY(0);
}

.register-btn--primary {
    border-color: #ef2448;
    background: #ef2448;
    color: #fff;
}

.register-btn--primary:hover {
    border-color: #d91e40;
    background: #d91e40;
}

.register-btn--secondary {
    border-color: #d8dde3;
    background: #fff;
    color: #515963;
}

.register-btn--secondary:hover {
    border-color: #bfc6ce;
    background: #f8f9fa;
}

.register-btn--dark {
    border-color: #303640;
    background: #303640;
    color: #fff;
}

.register-btn--small,
.register-btn-check {
    min-width: 88px;
    height: 40px;
    padding: 0 14px;
    border-color: #6c7480;
    border-radius: 6px;
    background: #6c7480;
    color: #fff;
    font-size: 13px;
    line-height: 38px;
}

.register-btn-check:hover,
.register-btn--small:hover {
    border-color: #545c67;
    background: #545c67;
}

/* 이미지 submit 버튼을 텍스트 버튼으로 교체하기 전 임시 정렬 */
.register-page input[type="image"] {
    width: auto;
    height: auto;
    border: 0;
    padding: 0;
    background: none;
}

/* =========================================================
   가입완료
   ========================================================= */

.register-complete {
    padding: 30px 30px;
    border: 1px solid #e2e6ea;
    border-radius: 7px;
    background: #fff;
    text-align: center;
}

.register-complete__icon {
    display: flex;
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0f3;
    color: #ef2448;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.register-complete__title {
    margin: 0;
    color: #20242b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1.2px;
}

.register-complete__description {
    margin: 14px 0 0;
    color: #626b76;
    font-size: 15px;
    line-height: 1.75;
}

.register-complete__description strong {
    color: #ef2448;
}

.register-complete__info {
    max-width: 560px;
    margin: 26px auto 0;
    padding: 18px 20px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #66707b;
    font-size: 13px;
    line-height: 1.7;
}

.register-complete .register-actions {
    margin-top: 28px;
}

/* =========================================================
   기존 PHP 구조와의 임시 호환
   PHP를 새 구조로 변경하기 전에도 일부 스타일 적용
   ========================================================= */

.register-page > table,
.register-page form > table {
    width: 100%;
    border-collapse: collapse;
}

.register-page textarea {
    max-width: 100%;
}

.register-page .welcome-root_welcomeRoot {
    width: 100%;
    padding: 50px 30px 24px;
    border: 1px solid #e2e6ea;
    border-radius: 12px 12px 0 0;
    background: #fff;
    text-align: center;
}

.register-page .welcome__header {
    color: #555f6a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
}

.register-page .welcome__header__headline {
    margin: 0 0 12px;
    color: #20242b;
    font-family: inherit;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -1.2px;
}

.register-page .welcome__header__sub-text {
    color: #626b76;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.register-page .welcome__text-highlight {
    color: #ef2448;
}

.register-page .welcome__content {
    padding: 0 30px 30px;
    border-right: 1px solid #e2e6ea;
    border-bottom: 1px solid #e2e6ea;
    border-left: 1px solid #e2e6ea;
    border-radius: 0 0 12px 12px;
    background: #fff;
    text-align: center;
}

.register-page .welcome__contentimg {
    margin: 0;
}

.register-page .welcome__footer {
    margin-top: 24px;
    text-align: center;
}

/* =========================================================
   반응형 보정
   현재 PC 980px 구조에서도 안전하게 축소
   ========================================================= */

@media screen and (max-width: 760px) {
    .register-heading__title {
        font-size: 25px;
    }

    .register-steps {
        display: block;
    }

    .register-steps::before {
        display: none;
    }

    .register-step {
        min-height: 72px;
        justify-content: flex-start;
        padding: 15px 18px;
    }

    .register-step + .register-step {
        border-top: 1px solid #edf0f2;
        border-left: 0;
    }

    .register-card__header {
        align-items: flex-start;
        padding: 16px 18px;
    }

    .register-card__body {
        padding: 18px;
    }

    .register-form-row {
        display: block;
    }

    .register-form-label {
        width: 100%;
        min-height: 46px;
        padding: 13px 16px 6px;
        background: #fff;
    }

    .register-form-field {
        padding: 8px 16px 16px;
    }

    .register-input--small,
    .register-input--medium,
    .register-input--large {
        width: 100%;
    }

    .register-email,
    .register-captcha,
    .register-address__zip,
    .register-field-line {
        align-items: stretch;
    }

    .register-email > *,
    .register-captcha > *,
    .register-address__zip > *,
    .register-field-line > * {
        max-width: 100%;
    }

    .register-actions {
        flex-direction: column-reverse;
    }

    .register-btn {
        width: 100%;
    }

    .register-complete {
        padding: 42px 20px 36px;
    }

    .register-complete__title {
        font-size: 25px;
    }
}
