/**
 * R2GO Signup Stylesheet - Kurly Premium Style
 * Palette: Kurly Deep Purple #5f0080, Pure White #fff, Neutral Border #ccc
 */

.r2go-signup-page .shell {
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 60px;
}

.r2go-signup {
    max-width: 440px;
    margin: 0 auto;
    padding: 16px 20px 40px;
    background-color: #ffffff;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 1. 상단 헤더 */
.r2go-signup__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    margin-bottom: 20px;
}

.r2go-signup__back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #111111;
    text-decoration: none;
    border-radius: 8px;
    margin-left: -6px;
}

.r2go-signup__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.4px;
}

.r2go-signup__header-spacer {
    width: 36px;
}

/* 2. 환영 배너 & 필수표기 */
.r2go-signup__welcome-banner {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333333;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.r2go-signup__welcome-text {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    word-break: keep-all;
}

.r2go-signup__required-legend {
    font-size: 11.5px;
    color: #777777;
    text-align: right;
}

.r2go-star {
    color: #ee6a7b;
    font-weight: 700;
}

/* 3. 행(Row) 레이아웃 */
.r2go-signup__row {
    margin-bottom: 16px;
    position: relative;
}

.r2go-signup__label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 7px;
    letter-spacing: -0.3px;
}

.r2go-signup__label-sub {
    font-size: 11.5px;
    font-weight: 400;
    color: #888888;
}

/* 4. 인풋 스타일 (모바일 터치 표준 44px 일체화) */
.r2go-signup__input {
    width: 100%;
    height: 44px;
    min-height: 44px;
    line-height: 44px;
    padding: 0 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 14px;
    color: #222222;
    background-color: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.r2go-signup__input::placeholder {
    color: #a8a8a8;
    font-size: 13.5px;
}

.r2go-signup__input::-ms-reveal,
.r2go-signup__input::-ms-clear,
input[type="password"].r2go-signup__input::-ms-reveal,
input[type="password"].r2go-signup__input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.r2go-signup__input::-webkit-contacts-auto-fill-button,
.r2go-signup__input::-webkit-credentials-auto-fill-button,
.r2go-signup__input::-webkit-strong-password-auto-fill-button,
.r2go-signup__input::-webkit-caps-lock-indicator {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
}

.r2go-signup__input:focus {
    border-color: #5f0080;
    box-shadow: 0 0 0 2px rgba(95, 0, 128, 0.12);
}

/* 인풋 + 우측 액션 버튼 그룹 (아이디 중복확인, 추천인) */
.r2go-signup__input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.r2go-signup__input-group .r2go-signup__input {
    flex: 1 1 auto;
    min-width: 0;
}

.r2go-signup__btn-action {
    flex: 0 0 94px;
    width: 94px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #5f0080;
    border-radius: 6px;
    background-color: #ffffff;
    color: #5f0080;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.r2go-signup__btn-action:hover {
    background-color: rgba(95, 0, 128, 0.06);
}

.r2go-signup__btn-action:disabled,
.r2go-signup__btn-action--disabled {
    border-color: #e5e5e5;
    background-color: #f5f5f5;
    color: #aaaaaa;
    cursor: not-allowed;
}

/* 인풋 래퍼 (비밀번호 눈 토글) */
.r2go-signup__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.r2go-signup__input-wrapper .r2go-signup__input {
    padding-right: 44px;
}

.r2go-signup__eye-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    opacity: 0.85;
}

.r2go-signup__eye-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* 주소 검색 통합 인풋 (컬리 스타일: 돋보기 아이콘 포함) */
.r2go-signup__address-search-box {
    position: relative;
    cursor: pointer;
}

.r2go-signup__input--searchable {
    cursor: pointer;
    background-color: #ffffff;
    padding-right: 44px;
}

.r2go-signup__search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.r2go-signup__detail-row {
    margin-top: 8px;
}

/* 5. 가이드 텍스트 */
.r2go-signup__guide {
    margin: 4px 0 0 2px;
    font-size: 11.5px;
    color: #666666;
    line-height: 1.35;
}

.r2go-signup__guide--error {
    color: #ee6a7b;
}

.r2go-signup__guide--success {
    color: #0c8a4b;
}

.r2go-signup__guide--purple {
    color: #5f0080;
    font-weight: 500;
}

.r2go-signup__divider {
    border: 0;
    height: 1px;
    background-color: #eeeeee;
    margin: 20px 0 18px;
}

/* 6. 이용약관 섹션 (컬리 원형 체크마크) */
.r2go-signup__terms-container {
    background-color: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 16px;
}

.r2go-signup__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.r2go-signup__check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.r2go-signup__circle-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cccccc;
    background-color: #ffffff;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.r2go-signup__circle-check::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
    transition: opacity 0.15s;
}

.r2go-signup__check input:checked + .r2go-signup__circle-check {
    background-color: #5f0080;
    border-color: #5f0080;
}

.r2go-signup__check input:checked + .r2go-signup__circle-check::after {
    opacity: 1;
}

.r2go-signup__check-text {
    flex: 1;
}

.r2go-signup__check-main {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.r2go-signup__check-desc {
    margin: 4px 0 0;
    font-size: 11px;
    color: #888888;
    line-height: 1.4;
}

.r2go-signup__sub-terms {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.r2go-signup__check--sub .r2go-signup__circle-check {
    width: 18px;
    height: 18px;
}

.r2go-signup__check--sub .r2go-signup__circle-check::after {
    width: 8px;
    height: 5px;
    border-width: 1.8px;
}

.r2go-signup__sub-label {
    font-size: 13px;
    color: #333333;
}

.r2go-star-text {
    color: #ee6a7b;
    font-weight: 600;
}

.r2go-sub-text {
    color: #888888;
}

/* 7. 가입하기 풀 와이드 버튼 */
.r2go-signup__submit-area {
    margin-top: 32px;
}

.r2go-signup__btn-submit {
    width: 100%;
    height: 52px;
    background-color: #5f0080;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r2go-signup__btn-submit:hover:not(:disabled) {
    background-color: #4b0066;
}

.r2go-signup__btn-submit:disabled {
    background-color: #dddddd;
    color: #ffffff;
    cursor: not-allowed;
}

/* 8. 에러 & 알림 */
.r2go-signup__errors {
    margin: 0 0 16px;
    padding: 12px 14px;
    background-color: #fff4f4;
    border: 1px solid #ffd2d2;
    border-radius: 4px;
    color: #ee6a7b;
    font-size: 13px;
    list-style: none;
}

.r2go-signup__flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    background-color: #f7eff9;
    border: 1px solid #e9d3ee;
    border-radius: 4px;
    color: #5f0080;
    font-size: 13px;
}

/* 9. 모달 레이어 */
.r2go-signup-modal,
.r2go-signup-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.r2go-signup-modal[hidden],
.r2go-signup-alert[hidden] {
    display: none !important;
}

.r2go-signup-modal__dim,
.r2go-signup-alert__dim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
}

.r2go-signup-modal__panel,
.r2go-signup-alert__panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.r2go-signup-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #888888;
    cursor: pointer;
}

.r2go-signup-modal__heading,
.r2go-signup-alert__title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
}

.r2go-signup-modal__input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.r2go-signup-modal__list {
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
}

.r2go-signup-modal__item {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    color: #333333;
    cursor: pointer;
}

.r2go-signup-modal__item:hover {
    background-color: #f9f5fa;
    color: #5f0080;
}

.r2go-signup-modal__confirm,
.r2go-signup-alert__ok {
    width: 100%;
    height: 44px;
    background-color: #5f0080;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.r2go-signup-alert__actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.r2go-signup-alert__cancel {
    flex: 1;
    height: 44px;
    background-color: #f5f5f5;
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
