/* 놀이터 인증 — 로그인 / 회원가입 공통 스타일 */

.pg-auth,
.pg-auth * {
    box-sizing: border-box;
}

.pg-auth {
    max-width: 900px;
    margin: 30px auto 100px;
    padding: 0 20px;
}

/* 상단 타이틀 */
.pg-auth-head {
    text-align: center;
    margin: 20px 0 32px;
}
.pg-auth-head__title {
    display: block;
    font-family: 'SchoolSafetyAquariumDecor', 'Paperlogy', 'Pretendard', sans-serif;
    font-size: 44px;
    font-weight: 500;
    color: var(--color-brand-red, #ff7268);
    margin: 0 0 10px;
    line-height: 1.2;
}
.pg-auth-head__desc {
    font-size: 20px;
    color: #555;
    margin: 30px 0 70px 0;
}

/* 폼 카드: dashed 상단 + 회색 하단 바 */
.pg-auth-form { margin: 0; }

.pg-auth-card {
    border: 1.5px dashed #999898;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    background: #fff;
    padding: 85px 56px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.pg-auth-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.pg-auth-field {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    cursor: text;
}
.pg-auth-field__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: block;
    margin: 0;
    padding: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
}
.pg-auth-field__icon--id { background-image: url('/asset/images/login_id_icon.png'); }
.pg-auth-field__icon--pw { background-image: url('/asset/images/login_pw_icon.png'); }
.pg-auth-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dcdcdc;
    background: #fff;
    font-size: 15px;
    color: #222;
    appearance: auto;
    -webkit-appearance: auto;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pg-auth-input:focus {
    border-color: var(--color-brand-red, #ff7268);
    box-shadow: 0 0 0 3px rgba(255, 114, 104, 0.15);
}
.pg-auth-input::placeholder {
    color: #b5b5b5;
}
.pg-auth-input--readonly,
.pg-auth-input--readonly:focus {
    background: #f5f5f5;
    color: #555;
    cursor: default;
    border-color: #dcdcdc;
    box-shadow: none;
}

/* 원형 LOGIN 버튼 */
.pg-auth-submit {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--color-brand-red, #ff7268);
    color: #fff;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 114, 104, 0.35);
    transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
}
.pg-auth-submit:hover {
    background: #ff5a50;
    box-shadow: 0 6px 18px rgba(255, 114, 104, 0.45);
}
.pg-auth-submit:active {
    transform: translateY(1px);
}

/* 하단 서브 액션 바 */
.pg-auth-sub {
    background: #f0f0f0;
    border: 1.5px dashed #999898;
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
/* resv_agree.php 의 .pg-resv-link-back 버튼과 동일 규격
   (base.css 의 a:link/:visited/:hover { color:inherit } 특이도가 같아
   class 단독 규칙을 이기므로 a.pg-auth-sub__btn 으로 특이도를 올림) */
a.pg-auth-sub__btn,
a.pg-auth-sub__btn:link,
a.pg-auth-sub__btn:visited,
a.pg-auth-sub__btn:hover,
a.pg-auth-sub__btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 150px;
    padding: 10px 30px;
    background: #626262;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
a.pg-auth-sub__btn:hover {
    background: #4a4a4a;
    color: #fff;
}

/* 회원가입: 테이블형 레이아웃 */
.pg-auth--register { max-width: 1100px; }

.pg-auth-tbl {
    border-top: 1px solid #888;
    border-bottom: 1px solid #888;
    margin: 0 0 32px;
    background: #fff;
}
.pg-auth-tbl__row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px dashed #cfcfcf;
}
.pg-auth-tbl__row:last-child { border-bottom: none; }

.pg-auth-tbl__label {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: #fafafa;
    border-right: 1px dashed #cfcfcf;
    font-size: 15px;
    font-weight: 500;
    color: #555;
}
.pg-auth-tbl__label label { cursor: pointer; }

.pg-auth-tbl__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
}
.pg-auth-tbl__field--phone { flex-wrap: wrap; }
.pg-auth-tbl__field--captcha {
    flex-wrap: wrap;
    gap: 8px;
}
.pg-auth-tbl__sep {
    color: #888;
    font-size: 15px;
    user-select: none;
}
.pg-auth-tbl__note {
    font-size: 13px;
    color: #888;
    margin-left: 8px;
}

/* 비밀번호 재확인 페이지 — 아이디 표시 박스 */
.pg-auth-confirm-id {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px dashed #cfcfcf;
    border-radius: 10px;
    margin: 0 0 6px;
}
.pg-auth-confirm-id__label {
    flex: 0 0 auto;
    font-size: 13px;
    color: #888;
}
.pg-auth-confirm-id__value {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    word-break: break-all;
}

.pg-auth-input--md { max-width: 320px; }
.pg-auth-input--tel {
    flex: 0 0 90px;
    width: 90px;
    text-align: center;
    padding: 0 10px;
}

.pg-auth-req {
    color: var(--color-brand-red, #ff7268);
    margin-left: 2px;
}

/* 하단 액션 버튼 */
.pg-auth-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 40px;
}
a.pg-auth-sub__btn--ghost,
a.pg-auth-sub__btn--ghost:link,
a.pg-auth-sub__btn--ghost:visited,
a.pg-auth-sub__btn--ghost:hover,
a.pg-auth-sub__btn--ghost:active {
    background: #fff;
    color: #555;
    border: 1.5px solid #bbb;
}
a.pg-auth-sub__btn--ghost:hover {
    background: #f0f0f0;
    color: #333;
}
.pg-auth-sub__btn--primary {
    background: var(--color-brand-red, #ff7268);
    color: #fff;
    border: none;
    border-radius: 999px;
    min-width: 150px;
    padding: 13px 36px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s;
}
.pg-auth-sub__btn--primary:hover { background: #ff5a50; }

/* 캡챠 내부 요소는 기본 배치 맞춤 */
.pg-auth-tbl__field--captcha #captcha { display: flex; align-items: center; gap: 8px; border: none; padding: 0; margin: 0; flex-wrap: wrap; }
.pg-auth-tbl__field--captcha #captcha legend { display: none; }
.pg-auth-tbl__field--captcha #captcha #captcha_img { height: 44px; }
.pg-auth-tbl__field--captcha #captcha #captcha_key {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    width: 140px;
    appearance: auto;
    -webkit-appearance: auto;
}
.pg-auth-tbl__field--captcha #captcha button {
    height: 44px;
    padding: 0 12px;
    background: #f0f0f0;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.pg-auth-tbl__field--captcha #captcha_info {
    flex: 1 1 100%;
    font-size: 13px;
    color: #888;
}

/* 회원가입 완료 */
.pg-auth-result-card {
    border: 1.5px dashed #999898;
    border-radius: 20px;
    background: #fff;
    padding: 60px 40px;
    text-align: center;
    margin: 0 0 32px;
}
.pg-auth-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 114, 104, 0.12);
    color: var(--color-brand-red, #ff7268);
    font-size: 38px;
    margin: 0 0 20px;
}
.pg-auth-result-greeting {
    color: #222;
    line-height: 1.4;
    margin: 0 0 30px;
}
.pg-auth-result-greeting strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-brand-red, #ff7268);
    margin: 0 0 10px;
}
.pg-auth-result-greeting__msg {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #444;
}
.pg-auth-result-notice {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 24px 0;
}
.pg-auth-result-notice strong { color: var(--color-brand-red, #ff7268); }
.pg-auth-result-note {
    font-size: 13px;
    color: #888;
    margin: 12px 0 0;
}
.pg-auth-info {
    display: inline-block;
    text-align: left;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 28px;
    margin: 8px 0 4px;
    min-width: 320px;
}
.pg-auth-info__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.pg-auth-info__row:last-child { border-bottom: none; }
.pg-auth-info__label {
    flex: 0 0 80px;
    font-size: 14px;
    color: #888;
}
.pg-auth-info__value {
    flex: 1;
    font-size: 15px;
    color: #222;
    font-weight: 600;
    word-break: break-all;
}

/* 회원정보 찾기: 본인인증 섹션 */
.pg-auth-cert-section {
    border: 1px dashed #cfcfcf;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    background: #fafafa;
    margin: 0 0 32px;
}
.pg-auth-cert-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 18px;
}
.pg-auth-cert-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pg-auth-cert-buttons .pg-auth-sub__btn--primary { min-width: 160px; }

/* 모바일 */
@media (max-width: 768px) {
    .pg-auth { margin: 20px auto 60px; padding: 0 16px; }
    .pg-auth-head__title { font-size: 32px; }
    .pg-auth-head__desc { font-size: 14px; }

    .pg-auth-card {
        padding: 28px 20px;
        flex-direction: column;
        gap: 22px;
    }
    .pg-auth-fields { width: 100%; }
    .pg-auth-submit {
        flex: 0 0 auto;
        width: 100%;
        height: 52px;
        border-radius: 999px;
        font-size: 17px;
    }
    .pg-auth-sub__btn { min-width: 120px; padding: 11px 22px; font-size: 0.95rem; }

    /* 회원가입 테이블: 세로 스택 */
    .pg-auth-tbl__row { flex-direction: column; }
    .pg-auth-tbl__label {
        flex: 0 0 auto;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px dashed #e5e5e5;
    }
    .pg-auth-tbl__field { padding: 14px 16px; }
    .pg-auth-input--md { max-width: 100%; width: 100%; }
    .pg-auth-input--tel { flex: 1; width: auto; }
    .pg-auth-sub__btn--primary { min-width: 120px; padding: 12px 22px; }

    /* 회원가입 액션바: 모바일에서 취소·회원가입 버튼 동일 너비 (gap 14px 의 절반씩 차감) */
    .pg-auth-actions .pg-auth-sub__btn,
    .pg-auth-actions a.pg-auth-sub__btn,
    .pg-auth-actions .pg-auth-sub__btn--primary {
        flex: 0 0 calc(50% - 7px);
        width: calc(50% - 7px);
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* 회원가입 완료 */
    .pg-auth-result-card { padding: 40px 20px; }
    .pg-auth-result-icon { width: 64px; height: 64px; font-size: 28px; }
    .pg-auth-result-greeting strong { font-size: 24px; }
    .pg-auth-result-greeting__msg { font-size: 16px; }
    .pg-auth-result-notice { font-size: 14px; }
    .pg-auth-info { min-width: 0; width: 100%; padding: 14px 18px; }
    .pg-auth-info__row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .pg-auth-info__label { flex: 0 0 auto; }

    /* 회원정보 찾기 */
    .pg-auth-cert-section { padding: 22px 16px; }
    .pg-auth-cert-buttons .pg-auth-sub__btn--primary { flex: 1 1 45%; min-width: 0; padding: 12px 14px; font-size: 0.9rem; }
    
    a.pg-auth-sub__btn,
a.pg-auth-sub__btn:link,
a.pg-auth-sub__btn:visited,
a.pg-auth-sub__btn:hover,
    a.pg-auth-sub__btn:active { font-size: 14px;}
}
