* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 회원가입 섹션 */
.signup-section {
    min-height: calc(100vh - 80px - 200px); /* 헤더와 푸터 높이를 제외 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.signup-container {
    width: 100%;
    max-width: 450px;
    background-color: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.signup-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* 메시지 */
.success-message {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    text-align: center;
    font-size: 14px;
}

.error-message {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    text-align: center;
    font-size: 14px;
}

/* 회원가입 폼 */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 입력 필드 + 버튼 래퍼 */
.input-with-btn {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.input-with-btn .form-input {
    flex: 1;
}

.btn-check {
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    background-color: #fff;
    color: #1064D9;
    border: 1px solid #1064D9;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-check:hover {
    background-color: #1064D9;
    color: #fff;
}

.btn-check:disabled {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.btn-check.checked {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 0 10px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    background-color: transparent;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #1064D9;
}

.form-input.error {
    border-bottom-color: #dc3545;
}

.form-input.success {
    border-bottom-color: #28a745;
}

/* 검증 메시지 */
.validation-message {
    font-size: 12px;
    min-height: 18px;
    transition: all 0.2s;
}

.validation-message.success {
    color: #28a745;
}

.validation-message.error {
    color: #dc3545;
}

.error-text {
    font-size: 12px;
    color: #dc3545;
    min-height: 18px;
}

/* 버튼 */
.btn-signup {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    background: linear-gradient(to bottom, #1064D9, #1C56A6);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-signup:hover {
    opacity: 0.9;
}

.btn-signup:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login-link {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: white;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login-link:hover {
    background-color: #f0f7ff;
}

/* 구분선 */
.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

/* 소셜 로그인 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.btn-social {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-social:hover {
    opacity: 0.9;
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-naver {
    background-color: #03c75a;
    color: white;
}

.btn-kakao {
    background-color: #fee500;
    color: #000000;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .signup-container {
        padding: 40px 30px;
    }

    .signup-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .form-input,
    .btn-signup,
    .btn-login-link,
    .btn-social {
        height: 48px;
    }

    .btn-check {
        height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .social-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .signup-section {
        padding: 40px 16px;
    }

    .signup-container {
        padding: 30px 20px;
    }

    .signup-title {
        font-size: 20px;
    }

    .form-input,
    .btn-signup,
    .btn-login-link,
    .btn-social {
        height: 46px;
        font-size: 14px;
    }

    .btn-check {
        height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }

    .input-with-btn {
        gap: 8px;
    }
}
