.signup-page-container {
    min-height: 100vh;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e9da 0%, #f9f6f2 100%);
    padding: 2rem 1rem;
}

.auth-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(139, 94, 60, 0.10);
    padding: 40px 32px 32px 32px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-section h2 {
    color: #8B5E3C;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-slogan {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.welcome-message {
    text-align: center;
    color: #8B5E3C;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, #fff8dc 0%, #f8f9fa 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #8B5E3C;
}

.kakao-signup-btn {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    background: #fee500;
    color: #3c1e1e;
    border: 1px solid #fcd34d;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease;
    box-sizing: border-box;
    margin: 0 0 10px 0;
    line-height: 1.3;
    -webkit-appearance: none;
    appearance: none;
}

.kakao-signup-btn-inner {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    max-width: 100%;
    flex: 0 0 auto;
}

.kakao-signup-btn .kakao-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.kakao-signup-btn .kakao-signup-btn-text {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    text-align: left;
    line-height: 1.25;
}

.kakao-signup-btn:hover { background: #ffd600; }
.kakao-notice {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.kakao-notice.info    { background: #fff8e1; color: #5a4300; border: 1px solid #ffe082; }
.kakao-notice.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.kakao-notice.error   { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }
.kakao-prefill-box {
    border: 1px dashed #fcd34d;
    background: #fffbea;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.kakao-prefill-title {
    font-weight: 700;
    color: #3c1e1e;
    margin-bottom: 6px;
    font-size: 14px;
}
.kakao-prefill-list {
    list-style: none;
    padding: 0;
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #4a3a1f;
}
.kakao-prefill-list li { padding: 2px 0; }
.kakao-prefill-hint {
    margin: 4px 0 0 0;
    color: #6b5b48;
    font-size: 12px;
}
.kakao-signup-btn.is-pending {
    background: #f3efe9;
    color: #8a8278;
    border-color: #e6ded2;
    cursor: not-allowed;
    pointer-events: none;
}
.kakao-signup-btn.is-pending:hover { background: #f3efe9; }
.kakao-divider-signup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 12px;
    color: #999;
    font-size: 12px;
}
.kakao-divider-signup::before,
.kakao-divider-signup::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e1e5e9;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    border: 1px solid #f5c6cb;
    font-size: 0.95rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    border: 1px solid #c3e6cb;
    font-size: 0.95rem;
}

.tooltip {
    display: none;
    position: absolute;
    background: #333;
    color: white;
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 1000;
    max-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 4px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label a.privacy-link {
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    color: #8B5E3C;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0;
}

.gender-toggle {
    display: flex;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.gender-toggle input[type="radio"] {
    display: none;
}

.gender-toggle .gender-option {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #666;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.gender-toggle input[type="radio"]:checked+.gender-option {
    background-color: #8B5E3C;
    color: white;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gender-toggle .gender-option:first-of-type {
    border-right: 1px solid #e1e5e9;
}

.validation-status {
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    min-height: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
    color: #666;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.validation-status.error {
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.validation-status.success {
    color: #2e7d32;
    background-color: #e8f5e8;
    border: 1px solid #c8e6c9;
}

#signupForm .validation-status[hidden] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: none !important;
}

#signupForm {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
}

#signupForm .form-group {
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px 0;
    box-sizing: border-box;
}

#signupForm .password-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#signupForm .password-wrap .text-input,
#signupForm .password-wrap input.text-input,
#signupForm .password-wrap input.has-toggle {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 48px 8px 12px;
    box-sizing: border-box;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.4;
}

#signupForm .password-wrap .pw-toggle-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    min-width: 44px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 6px 6px 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

#signupForm .password-wrap .pw-toggle-btn:hover {
    background: rgba(139, 94, 60, 0.08);
    color: #8B5E3C;
}

#signupForm .form-group .validation-status {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: left;
    box-sizing: border-box;
    margin-top: 6px;
}

#signupForm .text-input,
#signupForm input.text-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    padding: 8px 12px;
    margin: 0;
    line-height: 1.4;
}

#signupForm .text-input:focus,
#signupForm input.text-input:focus {
    outline: none;
    border-color: #8B5E3C;
    box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.1);
}

#signupForm input::placeholder,
#signupForm textarea::placeholder {
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
}

#signupForm .address-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#signupForm .address-row .text-input,
#signupForm .address-row input {
    flex: 1 1 auto;
    min-width: 0;
}

#signupForm .address-search-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 2px solid #8B5E3C;
    border-radius: 8px;
    background: #fff;
    color: #8B5E3C;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0;
    line-height: 1.35;
    -webkit-appearance: none;
    appearance: none;
}

#signupForm .address-search-btn:hover {
    background: #8B5E3C;
    color: #fff;
}

.pc-only {
    display: block;
}

.mobile-only {
    display: none;
}

.signup-page-container .auth-links {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e5e9;
}

.signup-page-container .auth-links p {
    color: #666;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.signup-page-container .auth-links a {
    color: #8B5E3C;
    text-decoration: none;
    font-weight: 600;
}

.signup-privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.signup-privacy-modal__inner {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: min(85vh, 640px);
    margin: auto;
    padding: 0;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(139, 94, 60, 0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.signup-privacy-modal__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1.1rem 1.1rem 0.75rem 1.25rem;
    border-bottom: 1px solid #efe8e0;
    background: linear-gradient(180deg, #fffbf7 0%, #fff 100%);
}

.signup-privacy-modal__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #5c3d28;
    line-height: 1.35;
    padding-right: 0.25rem;
}

.signup-privacy-modal__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #8a7a6e;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

.signup-privacy-modal__close:hover,
.signup-privacy-modal__close:focus {
    color: #5c3d28;
    background: rgba(139, 94, 60, 0.1);
    outline: none;
}

.signup-privacy-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.35rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.signup-privacy-modal__section-title {
    margin: 1rem 0 0.4rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #6b4a32;
    line-height: 1.45;
}

.signup-privacy-modal__section-title:first-child {
    margin-top: 0;
}

.signup-privacy-modal__p {
    margin: 0 0 0.65rem 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #444;
}

.signup-privacy-modal__p:last-child {
    margin-bottom: 0;
}
