/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container */
.signup-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-box {
    background-color: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Logo */
.logo {
    font-size: 36px;
    font-weight: 900;
    color: #1A3B5D;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #1A3B5D;
    background-color: #f9f9f9;
}

.form-input::placeholder {
    color: #aaa;
}

/* 주민등록번호 그룹 */
.resident-number-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resident-number-group .resident-front {
    flex: 0 0 140px;
    text-align: center;
}

.resident-number-group .resident-separator {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.resident-number-group .resident-back {
    flex: 0 0 40px;
    text-align: center;
}

.resident-number-group .resident-mask {
    font-size: 18px;
    letter-spacing: 4px;
    color: #666;
}

/* Error Message */
.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Success Message */
.success-message {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Signup Button */
.signup-btn {
    width: 100%;
    height: 55px;
    background-color: #2D4A6F;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.signup-btn:hover {
    background-color: #1A3B5D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 74, 111, 0.3);
}

.signup-btn:active {
    transform: translateY(0);
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #2D4A6F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #1A3B5D;
    text-decoration: underline;
}

/* Social Login Section */
.social-login-section {
    margin-top: 40px;
}

.divider {
    text-align: center;
    margin: 30px 0 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    background-color: white;
    color: #999;
    padding: 0 15px;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-box {
        padding: 40px 30px;
    }

    .logo {
        font-size: 28px;
    }

    .title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .form-input {
        height: 48px;
        font-size: 14px;
    }

    .signup-btn {
        height: 50px;
        font-size: 15px;
    }

    .social-btn {
        width: 55px;
        height: 55px;
    }

    .resident-number-group .resident-front {
        flex: 0 0 120px;
    }

    .resident-number-group .resident-back {
        flex: 0 0 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .signup-box {
        padding: 30px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .title {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .form-input {
        height: 46px;
    }

    .signup-btn {
        height: 48px;
    }

    .resident-number-group .resident-front {
        flex: 0 0 100px;
    }

    .resident-number-group .resident-back {
        flex: 0 0 30px;
    }

    .resident-number-group .resident-separator,
    .resident-number-group .resident-mask {
        font-size: 16px;
    }
}
