* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

.login-container {
    /* position: relative; */
    width: 450px;
}


.login-box {
    background: white;
    border-radius: 16px;
    padding: 48px 75px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h3 {
    font-size: 32px;
    color: #4285f4;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    /* position: relative; */
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    align-items: center;

}

.input-group input:focus {
    outline: none;
    border-color: #4285f4;
    background-color: white;
}

.input-group input::placeholder {
    color: #999;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: #3367d6;
}

.login-button:active {
    background: #2851a3;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 4px;
}

.link {
    font-size: 14px;
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #3367d6;
    text-decoration: underline;
}

.social-login {
    
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 0.5px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.social-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* ===================================
   반응형 미디어 쿼리 추가
   =================================== */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .login-container {
        width: 400px;
    }
    
    .login-box {
        width: 100%;
        padding: 40px 60px;
    }
    
    .logo h3 {
        font-size: 28px;
    }
    
    .login-title {
        font-size: 22px;
        margin-bottom: 28px;
    }
    
    .input-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 12px;
        font-size: 15px;
    }
    
    .links {
        margin-top: 18px;
    }
    
    .link {
        font-size: 13px;
    }
    
    .social-login {
        margin-top: 28px;
        padding-top: 28px;
    }
    
    .social-title {
        font-size: 13px;
    }
    
    .social-icons {
        gap: 14px;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .social-icon img {
        width: 38px;
        height: 38px;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        width: 350px;
    }
    
    .login-box {
        padding: 32px 24px;
        width: 100%;
    }
    
    .logo {
        margin-bottom: 24px;
    }
    
    .logo h3 {
        font-size: 26px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .login-form {
        gap: 14px;
    }
    
    .input-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .login-button {
        padding: 12px;
        font-size: 14px;
        margin-top: 6px;
    }
    
    .links {
        margin-top: 16px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .link {
        font-size: 13px;
    }
    
    .social-login {
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .social-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon img {
        width: 36px;
        height: 36px;
    }
    
    .error-messages, .messages {
        font-size: 13px;
    }
    
    .error {
        font-size: 13px;
    }
}

/* 극소형 모바일 (360px 이하) */
@media (max-width: 360px) {
    .login-container {
        width: 320px;
    }

    .login-box {
        width: 100%;
        padding: 28px 20px;
    }
    
    .logo h3 {
        font-size: 24px;
    }
    
    .login-title {
        font-size: 18px;
    }
    
    .input-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .login-button {
        padding: 10px;
        font-size: 13px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .social-icon img {
        width: 34px;
        height: 34px;
    }
}