@charset "utf-8";

/* ================================================================
   login.css — 로그인 · 회원가입 · 로그아웃 · 탈퇴 페이지 전용 스타일
   기존 design-tokens.css 변수를 그대로 사용합니다.
================================================================ */

/* ----------------------------------------------------------------
   전체 페이지 레이아웃
---------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100, #f5f5f5);
    padding: 4rem 1.6rem 6rem;
}

/* ----------------------------------------------------------------
   카드
---------------------------------------------------------------- */
.auth-card {
    background: #ffffff;
    border-radius: 2rem;
    padding: 4rem 3.2rem 3.6rem;
    width: 100%;
    max-width: 44rem;
    box-shadow: 0 0.4rem 2.4rem rgba(13, 28, 45, 0.08);
}

/* ----------------------------------------------------------------
   로고 영역
---------------------------------------------------------------- */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 3.2rem;
}

.auth-logo__img {
    height: 3.2rem;
    width: auto;
    object-fit: contain;
}

/* ----------------------------------------------------------------
   타이틀 / 설명
---------------------------------------------------------------- */
.auth-title {
    font-family: 'Pretendard', sans-serif;
    font-size: var(--fs-22, 2.2rem);
    font-weight: 700;
    color: var(--color-primary-solid, #0d1c2d);
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.auth-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: var(--fs-14, 1.4rem);
    font-weight: 400;
    color: var(--color-gray-500, #777777);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 3.2rem;
}

/* ----------------------------------------------------------------
   소셜 로그인 버튼 그룹
---------------------------------------------------------------- */
.social-btn-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 5.4rem;
    border-radius: 1.2rem;
    font-family: 'Pretendard', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    opacity: 0.88;
}

.social-btn:active {
    transform: scale(0.99);
}

.social-btn__icon {
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-btn__label {
    flex: 1;
    text-align: center;
    margin-right: 2.2rem; /* icon 너비만큼 보정해 텍스트 시각적 중앙 정렬 */
}

/* 카카오 */
.social-btn--kakao {
    background-color: #FEE500;
    color: rgba(0, 0, 0, 0.85);
}

/* 네이버 */
.social-btn--naver {
    background-color: #03C75A;
    color: #ffffff;
}

/* 구글 */
.social-btn--google {
    background-color: #ffffff;
    color: #333333;
    border: 0.15rem solid #e0e0e0;
}

/* ----------------------------------------------------------------
   소셜 SVG 인라인 아이콘 (이미지 없을 경우 fallback)
---------------------------------------------------------------- */
.social-btn__svg {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   구분선
---------------------------------------------------------------- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2.4rem 0;
    color: var(--color-gray-400, #999);
    font-size: var(--fs-12, 1.2rem);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 0.1rem;
    background: var(--color-gray-200, #e5e5e5);
}

/* ----------------------------------------------------------------
   더미 테스트 섹션
---------------------------------------------------------------- */
.dummy-section {
    background: #fffbeb;
    border: 0.15rem dashed #f59e0b;
    border-radius: 1.2rem;
    padding: 2rem;
}

.dummy-section__title {
    font-size: var(--fs-12, 1.2rem);
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dummy-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dummy-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    background: #ffffff;
    border-radius: 0.8rem;
    border: 0.1rem solid #fde68a;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.dummy-card:hover {
    background: #fef9c3;
}

.dummy-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dummy-card__badge--kakao  { background: #FEE500; color: #000; }
.dummy-card__badge--naver  { background: #03C75A; color: #fff; }
.dummy-card__badge--google { background: #4285F4; color: #fff; }

.dummy-card__info {
    flex: 1;
    min-width: 0;
}

.dummy-card__name {
    font-size: var(--fs-14, 1.4rem);
    font-weight: 600;
    color: var(--color-primary-solid, #0d1c2d);
}

.dummy-card__email {
    font-size: var(--fs-12, 1.2rem);
    color: var(--color-gray-500, #777);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dummy-card__tag {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.dummy-card__tag--existing { background: #dbeafe; color: #1d4ed8; }
.dummy-card__tag--new      { background: #dcfce7; color: #15803d; }

.dummy-notice {
    font-size: 1.1rem;
    color: #92400e;
    margin-top: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* ----------------------------------------------------------------
   에러 메시지
---------------------------------------------------------------- */
.auth-error-msg {
    background: #fef2f2;
    border: 0.1rem solid #fca5a5;
    border-radius: 0.8rem;
    padding: 1.2rem 1.6rem;
    font-size: var(--fs-14, 1.4rem);
    color: #dc2626;
    text-align: center;
    margin-bottom: 2rem;
}

/* ----------------------------------------------------------------
   약관 동의 영역 (join.php)
---------------------------------------------------------------- */
.terms-group {
    border: 0.1rem solid var(--color-gray-200, #e5e5e5);
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 2.4rem;
}

.terms-all {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    background: var(--color-gray-100, #f5f5f5);
    border-bottom: 0.1rem solid var(--color-gray-200, #e5e5e5);
    cursor: pointer;
}

.terms-all__label {
    font-size: var(--fs-14, 1.4rem);
    font-weight: 700;
    color: var(--color-primary-solid, #0d1c2d);
}

.terms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
    border-bottom: 0.1rem solid var(--color-gray-200, #e5e5e5);
}

.terms-item:last-child {
    border-bottom: none;
}

.terms-item__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    flex: 1;
}

.terms-item__badge {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.terms-item__badge--required { background: var(--color-point, #4568FF); color: #fff; }
.terms-item__badge--optional { background: var(--color-gray-300, #ccc); color: #555; }

.terms-item__text {
    font-size: var(--fs-14, 1.4rem);
    color: var(--color-primary-solid, #0d1c2d);
}

.terms-item__link {
    font-size: 1.2rem;
    color: var(--color-point, #4568FF);
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 커스텀 체크박스 */
.custom-check {
    appearance: none;
    -webkit-appearance: none;
    width: 2rem;
    height: 2rem;
    border: 0.2rem solid var(--color-gray-300, #ccc);
    border-radius: 0.4rem;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.custom-check:checked {
    background: var(--color-point, #4568FF);
    border-color: var(--color-point, #4568FF);
}

.custom-check:checked::after {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.05rem;
    width: 0.9rem;
    height: 0.55rem;
    border-left: 0.2rem solid #fff;
    border-bottom: 0.2rem solid #fff;
    transform: rotate(-45deg);
}

/* ----------------------------------------------------------------
   프로필 미리보기 (join.php)
---------------------------------------------------------------- */
.social-profile-preview {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    background: var(--color-gray-100, #f5f5f5);
    border-radius: 1.2rem;
    padding: 1.6rem;
    margin-bottom: 2.8rem;
}

.social-profile-preview__avatar {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-gray-200, #e5e5e5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-profile-preview__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-profile-preview__icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background: var(--color-point, #4568FF);
    color: #fff;
    font-weight: 700;
}

.social-profile-preview__name {
    font-size: var(--fs-16, 1.6rem);
    font-weight: 700;
    color: var(--color-primary-solid, #0d1c2d);
    margin-bottom: 0.4rem;
}

.social-profile-preview__provider {
    font-size: var(--fs-12, 1.2rem);
    color: var(--color-gray-500, #777);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-profile-preview__provider-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
}

/* ----------------------------------------------------------------
   폼 필드
---------------------------------------------------------------- */
.auth-form-group {
    margin-bottom: 2rem;
}

.auth-form-label {
    display: block;
    font-size: var(--fs-14, 1.4rem);
    font-weight: 600;
    color: var(--color-primary-solid, #0d1c2d);
    margin-bottom: 0.8rem;
}

.auth-form-label .required-mark {
    color: var(--color-danger, #dc2626);
    margin-left: 0.2rem;
}

.auth-form-label .optional-mark {
    font-weight: 500;
    font-size: var(--fs-12, 1.2rem);
    color: rgba(13, 28, 45, 0.45);
    margin-left: 0.4rem;
}

.auth-form-input {
    width: 100%;
    height: 5rem;
    padding: 0 1.6rem;
    border: 0.15rem solid var(--color-gray-300, #ccc);
    border-radius: 1rem;
    font-family: 'Pretendard', sans-serif;
    font-size: var(--fs-16, 1.6rem);
    color: var(--color-primary-solid, #0d1c2d);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form-input:focus {
    border-color: var(--color-point, #4568FF);
}

.auth-form-input::placeholder {
    color: var(--color-gray-400, #999);
}

.auth-form-hint {
    font-size: 1.2rem;
    color: var(--color-gray-500, #777);
    margin-top: 0.6rem;
}

.auth-form-select {
    width: 100%;
    height: 5rem;
    padding: 0 1.6rem;
    border: 0.15rem solid var(--color-gray-300, #ccc);
    border-radius: 1rem;
    font-family: 'Pretendard', sans-serif;
    font-size: var(--fs-16, 1.6rem);
    color: var(--color-primary-solid, #0d1c2d);
    background: #fff;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.4rem center;
    cursor: pointer;
}

/* ----------------------------------------------------------------
   CTA 버튼
---------------------------------------------------------------- */
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 5.4rem;
    border-radius: 1.2rem;
    background: var(--color-point, #4568FF);
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: var(--fs-16, 1.6rem);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: -0.01em;
}

.auth-submit-btn:hover  { opacity: 0.9; }
.auth-submit-btn:active { transform: scale(0.99); }

.auth-submit-btn--danger {
    background: var(--color-danger, #dc2626);
}

.auth-submit-btn--gray {
    background: rgba(13, 28, 45, 0.08);
    color: rgba(13, 28, 45, 0.8);
}

/* ----------------------------------------------------------------
   보조 링크
---------------------------------------------------------------- */
.auth-footer-links {
    text-align: center;
    margin-top: 2rem;
    font-size: var(--fs-14, 1.4rem);
    color: var(--color-gray-500, #777);
}

.auth-footer-links a {
    color: var(--color-point, #4568FF);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

/* ----------------------------------------------------------------
   탈퇴 페이지 강조 박스
---------------------------------------------------------------- */
.withdraw-warning-box {
    background: #fff5f5;
    border: 0.15rem solid #fca5a5;
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2.8rem;
}

.withdraw-warning-box__title {
    font-size: var(--fs-16, 1.6rem);
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1.2rem;
}

.withdraw-warning-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.withdraw-warning-list li {
    font-size: var(--fs-14, 1.4rem);
    color: #7f1d1d;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.5;
}

.withdraw-warning-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #dc2626;
}

/* ----------------------------------------------------------------
   login.php — Figma 로그인 본문 (헤더 없음)
---------------------------------------------------------------- */
.auth-page--login-v2 {
    background: #ffffff;
    padding: 2.4rem 1.6rem 6rem;
}

.auth-card--login-v2 {
    max-width: 52.7rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.login-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8rem 0 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.login-hero__title {
    font-family: 'Pretendard', var(--font-family-base, sans-serif);
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 4.8rem;
    color: rgba(13, 28, 45, 0.8);
    text-align: center;
    margin: 0;
    letter-spacing: -0.02em;
}

.login-hero__tag {
    margin: 1.6rem 0 0;
    padding: 0.4rem 0.8rem;
    border-radius: 0.8rem;
    background: rgba(13, 28, 45, 0.08);
    font-family: 'Pretendard', var(--font-family-base, sans-serif);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.5;
    color: rgba(13, 28, 45, 0.8);
}

.auth-page--login-v2 .login-actions {
    margin-top: 3.2rem;
}

.auth-page--login-v2 .auth-error-msg {
    margin-top: 2rem;
    margin-bottom: 0;
}

/* Frame 8593: 세로 스택, 간격 24px, 버튼 527×54 가운데 */
.auth-page--login-v2 .social-btn-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    margin-bottom: 0;
    width: 100%;
    padding: 0;
}

.auth-page--login-v2 .social-btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 52.7rem;
    height: 5.4rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    border-radius: 0.6rem;
    font-size: 1.8rem;
    line-height: 1.5;
    overflow: visible;
}

/* 카카오: 좌우 패딩 14px · 라벨 Apple SD Gothic Neo SB 느낌 */
.auth-page--login-v2 .social-btn--kakao {
    padding: 0 1.4rem;
    background-color: #fee500;
    color: rgba(0, 0, 0, 0.85);
}

.auth-page--login-v2 .social-btn--kakao .social-btn__label {
    font-family: 'Apple SD Gothic Neo', 'AppleSDGothicNeo-SemiBold', 'Malgun Gothic', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.85);
}

/* 네이버: 카카오와 동일 너비·모서리(화면과 동일하게 보이도록) · 라벨 Apple SD Gothic Neo M */
.auth-page--login-v2 .social-btn--naver {
    padding: 0 1.4rem;
    border-radius: 0.6rem;
    background-color: #03c75a;
    color: #fff;
}

.auth-page--login-v2 .social-btn--naver .social-btn__label {
    font-family: 'Apple SD Gothic Neo', 'AppleSDGothicNeo-Medium', 'Malgun Gothic', sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 1.5;
    color: #fff;
}

.auth-page--login-v2 .social-btn__label {
    flex: 0 1 auto;
    margin-right: 0 !important;
    text-align: center;
    min-width: 0;
}

/* 카카오 로고 18×18 · 네이버 로고 16×16 */
.auth-page--login-v2 .social-btn__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page--login-v2 .social-btn--kakao .social-btn__icon {
    width: 1.8rem;
    height: 1.8rem;
}

.auth-page--login-v2 .social-btn--naver .social-btn__icon {
    width: 1.6rem;
    height: 1.6rem;
}

.auth-page--login-v2 .social-btn--kakao .social-btn__svg,
.auth-page--login-v2 .social-btn--kakao .social-btn__icon img {
    width: 1.8rem;
    height: 1.8rem;
}

.auth-page--login-v2 .social-btn--naver .social-btn__svg,
.auth-page--login-v2 .social-btn--naver .social-btn__icon img {
    width: 1.6rem;
    height: 1.6rem;
}

.auth-page--login-v2 .social-btn__svg--kakao-mark,
.auth-page--login-v2 .social-btn__svg--naver-mark {
    display: block;
}

.auth-page--login-v2 .login-dummy-hint {
    margin: 1.6rem 0 0;
    padding: 0 0.8rem;
    font-family: 'Pretendard', var(--font-family-base, sans-serif);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    color: rgba(13, 28, 45, 0.45);
}

.auth-page--login-v2 .login-dummy-hint code {
    font-size: 1.1rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.4rem;
    background: rgba(13, 28, 45, 0.06);
    color: rgba(13, 28, 45, 0.65);
}

.auth-page--login-v2 .auth-footer-links {
    margin-top: 3.2rem;
}

/* ----------------------------------------------------------------
   반응형
---------------------------------------------------------------- */
@media (max-width: 480px) {
    .auth-page {
        padding: 2.4rem 1.2rem 4rem;
        justify-content: flex-start;
        padding-top: 4rem;
    }

    .auth-card {
        padding: 3.2rem 2rem 2.8rem;
        border-radius: 1.6rem;
    }

    .auth-title {
        font-size: var(--fs-20, 2rem);
    }

    .social-btn {
        height: 5rem;
        font-size: var(--fs-14, 1.4rem);
    }

    .dummy-section {
        padding: 1.6rem;
    }

    .auth-page--login-v2 .login-hero {
        padding-top: 4.8rem;
    }

    .login-hero__title {
        font-size: 2.6rem;
        line-height: 3.9rem;
    }

    .auth-page--login-v2 .social-btn {
        height: 5.4rem;
        font-size: 1.6rem;
    }

    .auth-page--login-v2 .social-btn--kakao .social-btn__label,
    .auth-page--login-v2 .social-btn--naver .social-btn__label {
        font-size: 1.6rem;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 2.4rem 1.6rem 2.4rem;
    }
}
