:root { --pink: #FF7BAC; --pink-deep: #F0558A; --pink-light: #FFE4EF; --pink-pale: #FFF5F9; --dark: #2D1B2E; --mid: #6B4C6E; --muted: #A08AA3; --bg: #FFF8FB; --kakao: #FEE500; }

body {
    margin: 0; padding: 0; font-family: 'Nunito', 'Noto Sans KR', sans-serif;
    background-color: var(--bg);
    background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext y='50' x='15' font-size='32' opacity='0.05'%3E🐾%3C/text%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext y='50' x='15' font-size='32' opacity='0.05'%3E🐾%3C/text%3E%3C/svg%3E");
    background-position: 0px 0px, 150px 150px; background-size: 300px 300px; background-repeat: repeat;
    color: var(--dark); overflow-x: hidden; display: flex; justify-content: center; align-items: center; min-height: 100vh;
}

.auth-wrapper { width: 100%; max-width: 440px; padding: 40px 20px; margin: 0 auto; }
.register-wrapper { max-width: 520px; }
.auth-header { text-align: center; margin-bottom: 25px; }
.logo { font-size: 32px; font-weight: 800; color: var(--pink); text-decoration: none; letter-spacing: -0.5px; }

/* 메인 카드 박스 */
.auth-card { background-color: #ffffff; padding: 40px; border-radius: 28px; box-shadow: 0 12px 36px rgba(255, 123, 172, 0.08); position: relative; z-index: 10; }
.auth-title { font-size: 22px; font-weight: 800; color: var(--dark); margin: 0 0 25px 0; text-align: center; }

/* 카드 내부 소셜 로그인 배치 */
.social-login { display: flex; flex-direction: column; gap: 12px; margin-bottom: 5px; }
.social-btn { display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: 16px; text-decoration: none; font-weight: 800; font-size: 15px; transition: 0.2s; box-sizing: border-box; width: 100%; }
.kakao-btn { background-color: var(--kakao); color: #3c1e1e; border: none; }
.kakao-btn:hover { filter: brightness(0.95); transform: translateY(-1px); }
.google-btn { background-color: #ffffff; color: var(--dark); border: 2px solid #eaedfa; }
.google-btn:hover { background-color: #f8f9fc; transform: translateY(-1px); }

/* 중앙 구분선 디자인 */
.divider { display: flex; align-items: center; text-align: center; margin: 22px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 2px solid var(--pink-light); }
.divider:not(:empty)::before { margin-right: 1em; }
.divider:not(:empty)::after { margin-left: 1em; }

/* 폼 요소 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--mid); }
.form-control { width: 100%; padding: 14px 16px; border: 2px solid var(--pink-light); border-radius: 16px; font-size: 15px; box-sizing: border-box; outline: none; font-family: inherit; transition: 0.2s; background: #fff; }
.form-control:focus { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-pale); }
.error-msg { color: #F0558A; font-size: 13px; margin-top: 6px; display: block; font-weight: 600; }

.auth-btn { width: 100%; padding: 14px; background-color: var(--pink); color: #ffffff; border: none; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.2s; box-sizing: border-box; }
.auth-btn:hover { background-color: var(--pink-deep); transform: translateY(-2px); }

.auth-footer { text-align: center; margin-top: 25px; font-size: 14px; color: var(--muted); font-weight: 600; }
.auth-footer a { color: var(--pink); text-decoration: none; font-weight: 800; }
.auth-footer a:hover { text-decoration: underline; }

/* 스마트폰 및 태블릿 반응형 레이아웃 */
@media screen and (max-width: 768px) {
    .container, .auth-card, .modify-container {
        margin: 20px 15px;
        padding: 25px 20px;
    }
    .page-title {
        font-size: 20px;
    }
    .btn-wrap, .btn-group {
        flex-direction: column;
    }
    .btn, .btn-save, .btn-cancel, .btn-submit, .auth-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}